exp

Overview :

The "exp" function is used for calcution of "e" to the power of x ,where x is an number.

Syntax :
double exp(double x);
Description :

The "exp" function accepts 1 parameters

  • x -> The x is number which is the power value of the e

"exp" function return the value of e^x.

Example :
#include <stdio.h>
#include<conio.h>
#include <math.h>

 int main()
 {
    double ans,x;
	
	printf("\nEnter the value of x : ");
	scanf("%lf",&x);

    ans = exp(x);
    printf("e to the power %lf is %lf ",x,ans);
	
	getch();

    return 0;
 }

Comments

comments powered by Disqus