source: http://en.wikipedia.org/wiki/Math.h

Math.h

From Wikipedia, the free encyclopedia

Jump to: navigation, search
C++ Standard Library headers
C Standard Library headers
assert.h
ctype.h
errno.h
float.h
limits.h
locale.h
math.h
setjmp.h
signal.h
stdarg.h
stddef.h
stdio.h
string.h
stdlib.h
time.h
The correct title of this article is math.h. The initial letter is shown capitalized due to technical restrictions.

math.h is a header file in the standard library of C programming language designed for basic mathematical operations. Most of the functions involve the use of floating point numbers. C++ also implements these functions for compatibility reasons and declares them in the header cmath.

[edit] Pre-C99 member functions

Name Description
acos arccosine
asin arcsine
atan arctangent
atan2 two-parameter arctangent
ceil smallest integer not less than parameter
cos cosine
cosh hyperbolic cosine
exp(double x) exponential function, computes ex
fabs absolute value
floor largest integer not greater than parameter
fmod floating point remainder
frexp fraction and power of 2.
ldexp scale exponent of floating-point value
log natural logarithm
log10 base-10 logarithm
modf obtain integral and fractional parts of floating-point number
pow(x,y) compute a value taken to an exponent, xy
sin sine
sinh hyperbolic sine
sqrt square root
tan tangent
tanh hyperbolic tangent

[edit] External links

Personal tools