Compute the exponential function for various input numbers.
System. |
The exp() method calculates the value of e raised to the power of a given number (ex).
Here, e represents the base of the natural logarithm system, approximately 2.718282. In Java, the constant Math.E holds the value of e.
public
|
Parameter |
Description |
number |
Needed: The exponent for raising e. |
Return |
A double value representing the outcome of raising e to a given exponent. |
Java Version |
Any |