Some cmath function prototypes
- double sqrt(double x) - square root
- double pow(double x, double y) - x raised to the power y
- double ceil(double x) - smallest integer not less than x
- double floor(double x) - largest integer not greater than x
- double fabs(double x) - absolute value of a floating point
- double fmod(double x, double y) - floating point remainder of x/y
- double exp(double x) - exponential
- double log(double x) - natural logarithm
- double log10(double x) - base 10 logarithm
- double cos(double x) - cosine
- double sin(double x) - sine
- double tan(double x) - tangent
- double acos(double x) - arc cosine
- double asin(double x) - arc sine
- double atan(double x) - arc tangent
- double atan2(double y, double x) - arc tangent of y/x
- double cosh(double x) - hyperbolic cosine
- double sinh(double x) - hyperbolic sine
- double tanh(double x) - hyperbolic tangent
a sample program using the cmath library