cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : C Library : cmath
 
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forum
Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
C Library
cassert (assert.h)
cctype (ctype.h)
cerrno (errno.h)
cfloat (float.h)
climits (limits.h)
clocale (locale.h)
cmath (math.h)
csetjmp (setjmp.h)
csignal (signal.h)
cstdarg (stdarg.h)
cstddef (stddef.h)
cstdio (stdio.h)
cstdlib (stdlib.h)
cstring (string.h)
ctime (time.h)
cmath (math.h)
functions:
· acos
· asin
· atan
· atan2
· ceil
· cos
· cosh
· exp
· fabs
· floor
· fmod
· frexp
· ldexp
· log
· log10
· modf
· pow
· sin
· sinh
· sqrt
· tan
· tanh
macro constants:
· HUGE_VAL

-

cmath (math.h) header

C numerics library

cmath declares a set of functions to compute common mathematical operations and transformations:

Trigonometric functions:

cos Compute cosine (function)
sin Compute sine (function)
tan Compute tangent (function)
acos Compute arc cosine (function)
asin Compute arc sine (function)
atan Compute arc tangent (function)
atan2 Compute arc tangent with two parameters (function)

Hyperbolic functions:

cosh Compute hyperbolic cosine (function)
sinh Compute hyperbolic sine (function)
tanh Compute hyperbolic tangent (function)

Exponential and logarithmic functions:

exp Compute exponential function (function)
frexp Get significand and exponent (function)
ldexp Generate number from significand and exponent (function)
log Compute natural logarithm (function)
log10 Compute base-10 logarithm (function)
modf Break into fractional and integral parts (function)

Power functions

pow Raise to power (function)
sqrt Compute square root (function)

Rounding, absolute value and remainder functions:

ceil Round up value (function)
fabs Compute absolute value (function)
floor Round down value (function)
fmod Compute remainder of division (function)
© The C++ Resources Network, 2000-2007 - All rights reserved
Spotted an error? - contact us