Java Math.expm1() methodThe java.lang.Math.expm1() is used to return the Euler's number e raised to the power of a double value and subtract one form it. Here, e is an Euler's number and it is approximately equal to 2.718281828459045. SyntaxParameterx = It is the exponent to raise e to in the computation of ex -1. ReturnIt returns the value of ex - 1
Example 1Test it NowOutput: 6.38905609893065 Example 2Test it NowOutput: -0.9990881180344455 Example 3Test it NowOutput: 0.0 Example 4Test it NowOutput: Infinity Example 5Test it NowOutput: -1.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