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. SyntaxParameterReturnIt returns the value ex, where e is the base of the natural logarithms.
Example 1Test it NowOutput: 7.38905609893065 Example 2Test it NowOutput: 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 |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India