# <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.

Function | Work of function |
---|---|

acos | Computes arc cosine of the argument |

acosh | Computes hyperbolic arc cosine of the argument |

asin | Computes arc sine of the argument |

asinh | Computes hyperbolic arc sine of the argument |

atan | Computes arc tangent of the argument |

atanh | Computes hyperbolic arc tangent of the argument |

atan2 | Computes arc tangent and determine the quadrant using sign |

cbrt | Computes cube root of the argument |

ceil | Returns nearest integer greater than argument passed |

cos | Computes the cosine of the argument |

cosh | Computes the hyperbolic cosine of the argument |

exp | Computes the e raised to given power |

fabs | Computes absolute argument of floating point argument |

floor | Returns nearest integer lower than the argument passed. |

hypot | Computes square root of sum of two arguments (Computes hypotenuse) |

log | Computes natural logarithm |

log10 | Computes logarithm of base argument 10 |

pow | Computes the number raised to given power |

sin | Computes sine of the argument |

sinh | Computes hyperbolic sine of the argument |

sqrt | Computes square root of the argument |

tan | Computes tangent of the argument |

tanh | Computes hyperbolic tangent of the argument |

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

## pow()

In C programming, pow() function calculates the number raised to a power. Function pow() takes two arguments. The first argument is base number and second argument is power raised to the base number.

[Mathematics] xy = pow(x,y) [In programming]

**Defined in Header File <math.h>**

## Syntax of pow(x,y)

pow(x,y);

Function pow() returns a value in type `double`

.