Appendix A
Commonly Used Mathematical Functions
Header Required: math.h
- double sin (double x);
- Return sin of x
- double cos (double x);
- Return cos of x
- double tan (double x);
- Return tan of x
- double asin (double x);
- Return sin-1 of x
- double acos (double x);
- Return cos-1 of x
- double atan (double x);
- Return tan-1 of x
- double sinh (double x);
- Return hyperbolic sin of x
- double cosh (double x);
- Return hyperbolic cos of x
- double tanh (double x);
- Return hyperbolic tan of x
- double exp (double x);
- Return exponential ex of x
- double log (double x);
- Return natural logarithm of x
- double log10 (double x);
- Return base 10 logarithm of x
- double pow (double x, double y);
- Return x to the power of y
- double sqrt (double x);
- Return square root of x
- double ceil (double x);
- Return the smallest integer >= x
- double floor (double x);
- Return the largest integer <= x
- double ldexp (double x, double n);
- Return x * 2n