replace remaining 'math.h' by 'cmath' header

This commit is contained in:
Guilherme Brondani Torri 2015-01-09 13:53:16 +01:00
parent 1ed39d5387
commit a8c734b147
32 changed files with 32 additions and 32 deletions

View File

@ -19,7 +19,7 @@
#define FILTER_H #define FILTER_H
#include <QtCore> #include <QtCore>
#include <math.h> #include <cmath>
#include <complex> #include <complex>
struct RC_elements { struct RC_elements {

View File

@ -22,7 +22,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <math.h> #include <cmath>
#include <iostream> #include <iostream>
#undef _QF_POLY_DEBUG #undef _QF_POLY_DEBUG

View File

@ -20,7 +20,7 @@
#include <QtCore> #include <QtCore>
#include <complex> #include <complex>
#include <math.h> #include <cmath>
#include "filter.h" #include "filter.h"

View File

@ -20,7 +20,7 @@
#include <QtCore> #include <QtCore>
#include <complex> #include <complex>
#include <math.h> #include <cmath>
#include "filter.h" #include "filter.h"
class SchCauer : public Filter // Cauer 2-order section class SchCauer : public Filter // Cauer 2-order section

View File

@ -17,7 +17,7 @@
#define TEE_TYPE 1 #define TEE_TYPE 1
#define BRIDGE_TYPE 2 #define BRIDGE_TYPE 2
#include <math.h> #include <cmath>
struct tagATT struct tagATT
{ {

View File

@ -27,7 +27,7 @@
#define LIGHTSPEED 299792458.0 #define LIGHTSPEED 299792458.0
#define Z_FIELD 376.73031346958504364963 #define Z_FIELD 376.73031346958504364963
#include <math.h> #include <cmath>
#define atanh(x) (0.5 * log((1.0 + (x)) / (1.0 - (x)))) #define atanh(x) (0.5 * log((1.0 + (x)) / (1.0 - (x))))
#define asinh(x) log((x) + sqrt((x) * (x) + 1.0)) #define asinh(x) log((x) + sqrt((x) * (x) + 1.0))

View File

@ -17,7 +17,7 @@
// Elliptic (Cauer) filters, odd order // Elliptic (Cauer) filters, odd order
#include <math.h> #include <cmath>
#include <stdlib.h> #include <stdlib.h>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -19,7 +19,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include <math.h> #include <cmath>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <string> #include <string>

View File

@ -22,7 +22,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <math.h> #include <cmath>
#include <iostream> #include <iostream>
#undef _QF_POLY_DEBUG #undef _QF_POLY_DEBUG

View File

@ -19,7 +19,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include <math.h> #include <cmath>
#include <stdlib.h> #include <stdlib.h>
#include <string> #include <string>

View File

@ -15,7 +15,7 @@
* * * *
***************************************************************************/ ***************************************************************************/
#include <math.h> #include <cmath>
#include <limits.h> #include <limits.h>
#include <QPainter> #include <QPainter>

View File

@ -19,7 +19,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>
#include <math.h> #include <cmath>
#include "classproto.h" #include "classproto.h"
map<int,char> Notation::constructExpToModMap() map<int,char> Notation::constructExpToModMap()

View File

@ -18,7 +18,7 @@
#include <iostream> #include <iostream>
#include <math.h> #include <cmath>
#include "classproto.h" #include "classproto.h"
using namespace std; using namespace std;

View File

@ -32,7 +32,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <math.h> #include <cmath>
#include "units.h" #include "units.h"
#include "transline.h" #include "transline.h"

View File

@ -25,7 +25,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <math.h> #include <cmath>
#include <float.h> #include <float.h>
#ifdef __MINGW32__ #ifdef __MINGW32__

View File

@ -31,7 +31,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <math.h> #include <cmath>
#include "units.h" #include "units.h"
#include "transline.h" #include "transline.h"

View File

@ -23,7 +23,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <math.h> #include <cmath>
#include "units.h" #include "units.h"
#include "transline.h" #include "transline.h"

View File

@ -24,7 +24,7 @@
#ifndef __UNITS_H #ifndef __UNITS_H
#define __UNITS_H #define __UNITS_H
#include <math.h> #include <cmath>
#ifdef __MINGW32__ #ifdef __MINGW32__
#define atanh(x) (0.5 * log((1.0 + (x)) / (1.0 - (x)))) #define atanh(x) (0.5 * log((1.0 + (x)) / (1.0 - (x))))

View File

@ -15,7 +15,7 @@
* * * *
***************************************************************************/ ***************************************************************************/
#include <stdlib.h> #include <stdlib.h>
#include <math.h> #include <cmath>
#include "components.h" #include "components.h"
#include "node.h" #include "node.h"

View File

@ -20,7 +20,7 @@
#include "mutualx.h" #include "mutualx.h"
#include "node.h" #include "node.h"
#include "math.h" #include <cmath>
MutualX::MutualX() MutualX::MutualX()
{ {

View File

@ -24,7 +24,7 @@
#include "schematic.h" #include "schematic.h"
#include "rect3ddiagram.h" #include "rect3ddiagram.h"
#include <math.h> #include <cmath>
#include <QPaintEvent> #include <QPaintEvent>
#include <QPushButton> #include <QPushButton>

View File

@ -31,7 +31,7 @@
#include <QPainter> #include <QPainter>
#include <limits.h> #include <limits.h>
#include <math.h> #include <cmath>
#include <stdlib.h> #include <stdlib.h>
#include "misc.h" #include "misc.h"

View File

@ -26,7 +26,7 @@
#include "tabdiagram.h" #include "tabdiagram.h"
#include "main.h" #include "main.h"
#include <math.h> #include <cmath>
#include "misc.h" #include "misc.h"

View File

@ -24,7 +24,7 @@
#include "main.h" #include "main.h"
#include "misc.h" #include "misc.h"
#include <math.h> #include <cmath>
#include <QPolygon> #include <QPolygon>
#include <QPainter> #include <QPainter>

View File

@ -20,7 +20,7 @@
\brief The TruthDiagram class implements the Truth Table diagram \brief The TruthDiagram class implements the Truth Table diagram
*/ */
#include <math.h> #include <cmath>
#include <QFontMetrics> #include <QFontMetrics>

View File

@ -14,7 +14,7 @@
* (at your option) any later version. * * (at your option) any later version. *
* * * *
***************************************************************************/ ***************************************************************************/
#include <math.h> #include <cmath>
#include "exportdialog.h" #include "exportdialog.h"
#include <QValidator> #include <QValidator>

View File

@ -41,7 +41,7 @@
#include <QClipboard> #include <QClipboard>
#include <QGroupBox> #include <QGroupBox>
#include <math.h> #include <cmath>
MatchDialog::MatchDialog(QWidget *parent) MatchDialog::MatchDialog(QWidget *parent)

View File

@ -26,7 +26,7 @@
#include "qucssettingsdialog.h" #include "qucssettingsdialog.h"
#include <iostream> #include <iostream>
#include <math.h> #include <cmath>
#include <QGridLayout> #include <QGridLayout>
#include <QVBoxLayout> #include <QVBoxLayout>
#include "main.h" #include "main.h"

View File

@ -23,7 +23,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include "math.h" #include <cmath>
#include "misc.h" #include "misc.h"
#include "main.h" #include "main.h"

View File

@ -23,7 +23,7 @@
#include "arrow.h" #include "arrow.h"
#include "arrowdialog.h" #include "arrowdialog.h"
#include "schematic.h" #include "schematic.h"
#include "math.h" #include <cmath>
#include <QPolygon> #include <QPolygon>
#include <QPainter> #include <QPainter>

View File

@ -24,7 +24,7 @@
#include <QLineEdit> #include <QLineEdit>
#include <QComboBox> #include <QComboBox>
#include <math.h> #include <cmath>
EllipseArc::EllipseArc() EllipseArc::EllipseArc()
{ {

View File

@ -27,7 +27,7 @@
#include <QLineEdit> #include <QLineEdit>
#include <QTextEdit> #include <QTextEdit>
#include <math.h> #include <cmath>
GraphicText::GraphicText() GraphicText::GraphicText()
{ {