# Math functions in C

Home > Lesson > Chapter 21
5 Steps - 3 Clicks

# Math functions in C

### Description

Math functions in C are performed by math function. To implement the functions in the program, one has to use <math.h> library file. These functions has the arguments in double type.Also, the return statements are also in double type.

### Functions

Table giving the description of few Math functions in C.
Function Description
double `asin`(double a) arc sine of a is returned in radians.
double `acos`(double x) arc cosine of a is returned in radians.
double `atan`(double a) arc tangent of a is returned in radians.
double `atan2`(double a, double b) The arc tangent of b/a gives the quadrant depending on signs given is eturned
double `sin`(double a) Sine of angle a is returned in radians
double `sinh`(double a) Hyperbolic Sine of angle a is returned in radians
double `cos(double a)` Cosine of angle a is returned in radians
double `cosh`(double a) Hyperbolic Sine of angle a is returned in radians
double `tanh`(double a) Hyperbolic Tangent of angle a is returned in radians
double `exp`(double a) The value is the result of e lifted to the ath power
double `frexp`(double a, int *exp) a=mantissa* 2^ exp is returned
double `log`(double a) Logarithmic value is returned with base e
double `log10`(double a) Logarithmic value is returned with base 10
double `sqrt`(double a) Square root of a is returned
double `ceil`(double a) Smaller value is returned which is greater or equal to a
double `fabs`(double a) Absolute integer value of a is returned
double `floor`(double a) Larger value is returned which is lesser equal to a
double `fmod`(double a, double b) Remainder of a divided by b is returned
double `log10`(double a) Logarithmic value is returned with base 10
double `sqrt`(double a) Square root of a is returned
double `pow`(double a, double b) The value obtained after a raised to power of b is returned