Java Math.exp() methodThe java.lang.Math.exp() is used to return the Euler's number e raised to the power of a double value. Here, e is an Euler's number and it is approximately equal to 2.718281828459045. SyntaxParameterReturn
It returns the value ex, where e is the base of the natural logarithms.
Example 1Output: 7.38905609893065 Example 2Output: 9.118819655545162E-4 Example 3Test it NowOutput: 1.0 Example 4Test it NowOutput: Infinity Example 5Test it NowOutput: 0.0 Example 6Test it NowOutput: NaN
Next TopicJava Math
|