23 #define _USE_MATH_DEFINES 1 32 #define M_PI_2 (1.57079632679489661923) 36 #define LOG_MIN 1.0e-100 41 #define LOG_MAX 1.0e100 65 const double eps = qAbs( 1.0e-6 * intervalSize );
67 if ( value2 - value1 > eps )
70 if ( value1 - value2 > eps )
97 return -
M_PI_2 - x / ( x * x + 0.28 );
100 return M_PI_2 - x / ( x * x + 0.28 );
102 return x / ( 1.0 + x * x * 0.28 );
114 return ( y >= 0 ) ? d + M_PI : d - M_PI;
138 double a,
double b,
double c,
double d )
140 return ( ( ( a * x ) + b ) * x + c ) * x + d;
146 return degrees * M_PI / 180.0;
152 return degrees * 180.0 / M_PI;
QWT_EXPORT double qwtGetMin(const double *array, int size)
Find the smallest value in an array.
int qwtFuzzyCompare(double value1, double value2, double intervalSize)
Compare 2 values, relative to an interval.
double qwtDegrees(double degrees)
Translate radians into degrees.
double qwtRadians(double degrees)
Translate degrees into radians.
QWT_EXPORT double qwtNormalizeDegrees(double degrees)
Normalize an angle to be int the range [0.0, 360.0[.
double qwtCubicPolynom(double x, double a, double b, double c, double d)
int qwtSign(double x)
Return the sign.
double qwtFastAtan(double x)
Approximation of arc tangent ( error below 0,005 radians )
double qwtSqr(double x)
Return the square of a number.
QWT_EXPORT double qwtGetMax(const double *array, int size)
Find the largest value in an array.
double qwtFastAtan2(double y, double x)
Approximation of arc tangent ( error below 0,005 radians )
QWT_EXPORT double qwtNormalizeRadians(double radians)
Normalize an angle to be int the range [0.0, 2 * PI[.