Macros | Functions
qwt_math.h File Reference
#include "qwt_global.h"
#include <qmath.h>
Include dependency graph for qwt_math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOG_MAX   1.0e100
 Maximum value for logarithmic scales. More...
 
#define LOG_MIN   1.0e-100
 Minimum value for logarithmic scales. More...
 
#define M_PI_2   (1.57079632679489661923)
 

Functions

double qwtCubicPolynom (double x, double a, double b, double c, double d)
 
double qwtDegrees (double degrees)
 Translate radians into degrees. More...
 
double qwtFastAtan (double x)
 Approximation of arc tangent ( error below 0,005 radians ) More...
 
double qwtFastAtan2 (double y, double x)
 Approximation of arc tangent ( error below 0,005 radians ) More...
 
int qwtFuzzyCompare (double value1, double value2, double intervalSize)
 Compare 2 values, relative to an interval. More...
 
QWT_EXPORT double qwtGetMax (const double *array, int size)
 Find the largest value in an array. More...
 
QWT_EXPORT double qwtGetMin (const double *array, int size)
 Find the smallest value in an array. More...
 
QWT_EXPORT double qwtNormalizeDegrees (double degrees)
 Normalize an angle to be int the range [0.0, 360.0[. More...
 
QWT_EXPORT double qwtNormalizeRadians (double radians)
 Normalize an angle to be int the range [0.0, 2 * PI[. More...
 
double qwtRadians (double degrees)
 Translate degrees into radians. More...
 
int qwtSign (double x)
 Return the sign. More...
 
double qwtSqr (double x)
 Return the square of a number. More...
 

Macro Definition Documentation

#define LOG_MAX   1.0e100

Maximum value for logarithmic scales.

Definition at line 42 of file qwt_math.h.

#define LOG_MIN   1.0e-100

Minimum value for logarithmic scales.

Definition at line 37 of file qwt_math.h.

#define M_PI_2   (1.57079632679489661923)

Definition at line 32 of file qwt_math.h.

Function Documentation

double qwtCubicPolynom ( double  x,
double  a,
double  b,
double  c,
double  d 
)
inline

Definition at line 137 of file qwt_math.h.

double qwtDegrees ( double  degrees)
inline

Translate radians into degrees.

Definition at line 150 of file qwt_math.h.

double qwtFastAtan ( double  x)
inline

Approximation of arc tangent ( error below 0,005 radians )

Definition at line 94 of file qwt_math.h.

double qwtFastAtan2 ( double  y,
double  x 
)
inline

Approximation of arc tangent ( error below 0,005 radians )

Definition at line 106 of file qwt_math.h.

int qwtFuzzyCompare ( double  value1,
double  value2,
double  intervalSize 
)
inline

Compare 2 values, relative to an interval.

Values are "equal", when : $\cdot value2 - value1 <= abs(intervalSize * 10e^{-6})$

Parameters
value1First value to compare
value2Second value to compare
intervalSizeinterval size
Returns
0: if equal, -1: if value2 > value1, 1: if value1 > value2

Definition at line 63 of file qwt_math.h.

QWT_EXPORT double qwtGetMax ( const double *  array,
int  size 
)

Find the largest value in an array.

Parameters
arrayPointer to an array
sizeArray size

Definition at line 35 of file qwt_math.cpp.

QWT_EXPORT double qwtGetMin ( const double *  array,
int  size 
)

Find the smallest value in an array.

Parameters
arrayPointer to an array
sizeArray size

Definition at line 17 of file qwt_math.cpp.

QWT_EXPORT double qwtNormalizeDegrees ( double  degrees)

Normalize an angle to be int the range [0.0, 360.0[.

Parameters
radiansAngle in degrees
Returns
Normalized angle in degrees

Definition at line 67 of file qwt_math.cpp.

QWT_EXPORT double qwtNormalizeRadians ( double  radians)

Normalize an angle to be int the range [0.0, 2 * PI[.

Parameters
radiansAngle in radians
Returns
Normalized angle in radians

Definition at line 52 of file qwt_math.cpp.

double qwtRadians ( double  degrees)
inline

Translate degrees into radians.

Definition at line 144 of file qwt_math.h.

int qwtSign ( double  x)
inline

Return the sign.

Definition at line 77 of file qwt_math.h.

double qwtSqr ( double  x)
inline

Return the square of a number.

Definition at line 88 of file qwt_math.h.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:18