Provide the result of subtracting 1 from ex for various values of x.
System. |
The expm1() method yields the result of ex – 1 for any given number .
Here, represents the base of the natural logarithm system, approximately 2.718282. In Java, the constant Math.E holds the value of .
public |
Parameter |
Description |
number |
Needed: The value of x in the expression ex – 1. |
Returns |
A double value representing the result of ex – 1. for ex – 1. a given number |
Java Version |
1.5 |