Functions

Math Namespace Reference

Functions

bool IsNormalNumber (float)
float IntPowerOf (float, int)
float PowerOf (float, float)
float ASin (float)
float ACos (float)
float Log (float)
float Log10 (float)
float Sqrt (float)
float Exp (float)
float degFromNorth (float azimuth)
int LCMOf (int, int)
bool IsNormalNumber (double)
double IntPowerOf (double, int)
double PowerOf (double, double)
double ASin (double)
double ACos (double)
double Log (double)
double Log10 (double)
double Exp (double)
double Sqrt (double)
int IntPowerOf (int, int)
int64_t IntPowerOf (int64_t, int)

Function Documentation

float Math::ACos ( float   ) 

Checks the input range before calling acos, and does thus avoid nan's due to roundoff errors.

double Math::ACos ( double   ) 
float Math::ASin ( float   ) 

Checks the input range before calling asin, and does thus avoid nan's due to roundoff errors.

double Math::ASin ( double   ) 
float Math::degFromNorth ( float  azimuth  )  [inline]
float Math::Exp ( float   ) 

Checks the input range before calling exp, if too large value is given, mUdf(float) is returned.

double Math::Exp ( double   ) 
int Math::IntPowerOf ( int  ,
int   
)
float Math::IntPowerOf ( float  ,
int   
)
int64_t Math::IntPowerOf ( int64_t  ,
int   
)
double Math::IntPowerOf ( double  ,
int   
)
bool Math::IsNormalNumber ( float   ) 
bool Math::IsNormalNumber ( double   ) 
int Math::LCMOf ( int  ,
int   
)
double Math::Log ( double   ) 
float Math::Log ( float   ) 

Checks the input range before calling log, returns undefined if negative or zero value is given.

double Math::Log10 ( double   ) 
float Math::Log10 ( float   ) 

Checks the input range before calling log10, returns mUdf(float) if negative or zero value is given.

double Math::PowerOf ( double  ,
double   
)
float Math::PowerOf ( float  ,
float   
)

PowerOf(-2,2) returns -4. This may be mathematically incorrect, it delivers continuity with negative numbers

float Math::Sqrt ( float   ) 

Checks the input range before calling sqrt, if negative value is given, zero is returned.

double Math::Sqrt ( double   )