next up previous
Next: Math Macros Up: Math Functions & Macros Previous: Math Functions & Macros

Common Math Functions (defined in math.h)

In the following table, x and y are doubles and n is an int.

Category Function(s) Notes
Trigonometric cos(x), sin(x), tan(x), acos(x), asin(x), atan(x) Use radians
Hyperbolic cosh(x), sinh(x), tanh(x), acosh(x), asinh(x), atanh(x)  
Exponential & Log exp(x), log(x) Use base $e$
Power Functions pow(x,y), sqrt(x)  
Bessel Functions j0(x), j1(x), jn(n,x), y0(x), y1(x), yn(n,x)  

Massimo Ricotti 2009-01-26