math.h

math.h is a standard header file that comes with most C++ compilers.

It contains the most useful math functions.

The following math functions exists in math.h:

asin()
?
acos()
?
atan()
?
atan2()
?
cos()
?
cosh()
?
exp()
?
sin()
?
sinh()
?
tan()
?
tanh()
?
log
?
log10
?
pow
?
pow10
?
sqrt
?
ceil(x)
rounds up to the nearest integer.
floor(x)
Rounds down to the nearest integer.
round(x)
Rounds to the nearest integer.
abs(x)
Returns the absolute value of a number ( in effect, makes it positive. )
fabs
?
ldexp
?
frexp
?
modf
?
fmod
?
hypot(a,b)
calculates the hypotenuse of a triangle. a and b are the legs.

Related Pages

Tutorials

Categories: Headers
page_revision: 11, last_edited: 1246723961|%e %b %Y, %H:%M %Z (%O ago)