<math.h>

There are many standard library functions defined under "math.h" to perform mathematical operations in C programming. You will learn about various library functions to compute mathematical operations in this chapter.

Library functions under "math.h"
FunctionWork of function
acosComputes arc cosine of the argument
acoshComputes hyperbolic arc cosine of the argument
asinComputes arc sine of the argument
asinhComputes hyperbolic arc sine of the argument
atanComputes arc tangent of the argument
atanhComputes hyperbolic arc tangent of the argument
atan2Computes arc tangent and determine the quadrant using sign
cbrtComputes cube root of the argument
ceilReturns nearest integer greater than argument passed
cosComputes the cosine of the argument
coshComputes the hyperbolic cosine of the argument
expComputes the e raised to given power
fabsComputes absolute argument of floating point argument
floorReturns nearest integer lower than the argument passed.
hypotComputes square root of sum of two arguments (Computes hypotenuse)
logComputes natural logarithm
log10Computes logarithm of base argument 10
powComputes the number raised to given power
sinComputes sine of the argument
sinhComputes hyperbolic sine of the argument
sqrtComputes square root of the argument
tanComputes tangent of the argument
tanhComputes hyperbolic tangent of the argument

Despite these common mathematical operations under "math.h", there are few mathematical functions defined under "stdlib.h" as well.