These overloads effectively cast x to a double before calculations defined for t being any integral type.
Exp in math h.
The exponential value of 0 000000 is 1 000000 the exponential value of 1 000000 is 2 718282 the exponential value of 2 000000 is 7 389056 math h htm previous page print page.
C11 standard iso iec 9899 2011.
Returns the base 2 exponential function of x which is 2 raised to the power x.
Static double exp double d.
C exp prototype double exp double arg.
373 375 f 10 3 1 the exp functions p.
Additional overloads are provided in this header cmath for the integral types.
The exp function computes the base e exponential of x.
The exp arg takes a single argument and returns the value in type double.
Double double public shared function exp d as double as double.
In the c programming language the exp function returns e raised to the power of x.
242 7 25 type generic math tgmath h p.
The exp2 function computes the base 2 exponential of x.
The expm1 function computes the base e exponential of x minus 1 accurately even for very small values of x.
In order to calculate the exp for long double or float you can use the following prototype.
It is defined in math h header file.
Mathematics e x exp x in c programming.
Public static double exp double d.