The java.lang.Math.sinh() returns the hyperbolic sine of a double value passed to it as argument. The hyperbolic sine of any value a is defined as,
(ea – e-a)/2
where e is Euler’s number.
If the argument is NaN, then the result is NaN. If the argument is infinity then the result will also be infinity with same sign as that of argument. If the argument is zero, then the result is a zero with the same sign as the argument.
public static double sinh(double a) Parameter : a : the value whose hyperbolic sine is to be returned.
This method returns the hyperbolic sine value of the argument.
Example 1 : To show working of java.lang.Math.sinh() method.
Example 2 : To show working of java.lang.Math.sinh() method when argument is NaN or infinity.
-Infinity Infinity NaN
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.