Exp
Syntax
double exp(double x);
Function
Calculates the exponential function.
Parameters
Value whose exponent is to be calculated
Return Values
Exponent to basee.
double x;x = exp(5);write("Exponent of 5: %f",x); // Result: 148.413159
[cos](/en/syntax/general/math/cos) | [sin](/en/syntax/general/math/sin) | [sqrt](/en/syntax/general/math/sqrt)