Math.h
From Wikipedia, the free encyclopedia
C++ Standard Library headers |
C Standard Library headers |
---|
assert.h |
complex.h |
ctype.h |
errno.h |
fenv.h |
float.h |
inttypes.h |
iso646.h |
limits.h |
locale.h |
math.h |
setjmp.h |
signal.h |
stdarg.h |
stdbool.h |
stddef.h |
stdint.h |
stdio.h |
stdlib.h |
string.h |
tgmath.h |
time.h |
wchar.h |
wctype.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
.
All functions that take or return an angle work in radians.
[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
- Dinkumware math.h reference, a reference of all
math.h
functions