# C Math Library

The <**math.h>** header defines various mathematical functions and one macro. Many functions are available in this library to take double as an argument and then return double as a result. As explained in the previous tutorial, here are more functions that can be used in <math.h> library

**double exp (double number)**

The exp() returns the value of e raised to the power of the given number.

**E.g.:**

#include <stdio.h>

#include <conio.h>

#include <math.h>

int main()

{

double x = 12.0, result;

result = exp(x);

printf (“The exponential value of 12 is = %.2lf”, x, result);

return 0;

}

**Output**

**double fmod (double number 1, double number 2)**

It returns the remainder of the number 1 divided by the number 2. It works as a modulus function.

**E.g.:**

#include <stdio.h>

#include <conio.h>

#include <math.h>

int main ()

{

int a, b, c;

a = 8;

b = 6;

c = 4;

printf(“The remainder of 8 / 4 is %lf \n”, fmod(a, c));

printf(“The remainder of 8 / 6 is %lf \n”, fmod(a, b));

printf(“The remainder of 6 / 4 is %lf \n”, fmod(b, c));

return(0);

}