# Math Functions

Mathematical functions.

## Basic Operations

• double abs( double arg )

• double fabs( double arg )

• double fmod( double arg1 , double arg2 )

• double remainder( double arg1 , double arg2 )

• double remquo( double arg1 , double arg2 , int& arg3 )

• double fdim( double arg1 , double arg2 )

• double fma( double arg1 , double arg2 , double arg3 )

• double fmax( double arg1 , double arg2 )

• double fmin( double arg1 , double arg2 )

• double nan( string arg )

## Nearest Integer Floating Point Operations

• double ceil( double arg )

• double floor( double arg )

• double trunc( double arg )

• double round( double arg )

• int lround( double arg )

• int64_t llround( double arg )

• double rint( double arg )

• int lrint( double arg )

• int64_t llrint( double arg )

• double nearbyint( double arg )

## Exponential Functions

• double exp( double arg )

• double exp2( double arg )

• double expm1( double arg )

• double log( double arg )

• double log10( double arg )

• double log1p( double arg )

• double log2( double arg )

## Power Functions

• double pow( double arg1 , double arg2 )

• double sqrt( double arg )

• double cbrt( double arg )

• double hypot( double arg1 , double arg2 )

## Trigonometric Functions

• double cos( double arg )

• double sin( double arg )

• double tan( double arg )

• double acos( double arg )

• double asin( double arg )

• double atan( double arg )

• double atan2( double arg1 , double arg2 )

## Hyperbolic Functions

• double cosh( double arg )

• double sinh( double arg )

• double tanh( double arg )

• double acosh( double arg )

• double asinh( double arg )

• double atanh( double arg )

## Error and Gamma Functions

• double erf( double arg )

• double erfc( double arg )

• double tgamma( double arg )

• double lgamma( double arg )

## Floating Point Manipulation Functions

• double frexp( double arg , int& arg2 )

• double ldexp( double arg , int arg2 )

• double modf( double arg , double& arg2 )

• double scalbn( double arg , int arg2 )

• double scalbln( double arg , int arg2 )

• int ilogb( double arg )

• double logb( double arg )

• double copysign( double arg , double arg2 )

• double nextafter( double arg , double arg2 )

• double nexttoward( double arg , double arg2 )

## Classification and Comparison

• int fpclassify( double arg )

• bool isfinite( double arg )

• bool isinf( double arg )

• bool isnan( double arg )

• bool isnormal( double arg )

• bool signbit( double arg )

• bool isgreater( double arg1 , double arg2 )

• bool isgreaterequal( double arg1 , double arg2 )

• bool isless( double arg1 , double arg2 )

• bool islessequal( double arg1 , double arg2 )

• bool islessgreater( double arg1 , double arg2 )

• bool isunordered( double arg1 , double arg2 )