The java.lang.StrictMath.expm1() is an inbuilt method in Java which is used to return the exponential e^num -1 for a given value of num. The method gives rise to four different cases:
- The method returns NaN when the given argument is NaN.
- The result is positive infinity when the argument is positive infinity.
- The result is negative infinity when the argument is negative infinity.
- For 0 the methods return 0 with the same sign as the argument.
public static double expm1(double num)
Parameters: This method accepts one parameter num of double type and refers to the value on which the exponential operation is to be performed.
Return Value: The method will return the result of enum – 1 operation.
Input: num = (1.0/0.0) Output: Infinity Input: 32.2 Output: 9.644557735961714E13
Below programs illustrate the java.lang.StrictMath.expm1() method:
Attention reader! Don’t stop learning now. Get hold of all the important Java and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.
- Java Math expm1() method with Example
- StrictMath asin() Method in Java With Examples
- StrictMath ceil() Method in Java with Examples
- StrictMath cos() Method in Java with Examples
- StrictMath min() Method in Java with Examples
- StrictMath max() Method in Java With Examples
- StrictMath ulp() Method In Java with Examples
- StrictMath toIntExact() Method in Java with Examples
- StrictMath fma() method in Java with Examples
- StrictMath multiplyFull() method in Java with Examples
- StrictMath subtractExact() in Java With Examples
- Java.lang.StrictMath class in Java | Set 1
- Java.lang.StrictMath class in Java | Set 2
- StrictMath log1p() Method in Java
- StrictMath IEEEremainder() Method in Java
- StrictMath nextAfter() Method in Java
- StrictMath tan() Method in Java
- StrictMath atan2() Method in Java
- StrictMath hypot() Method in Java
- StrictMath acos() Method in Java
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.