Java Math sinh() Method
Example
Return the hyperbolic sine of different numbers:
System.out.println(Math.sinh(3));
System.out.println(Math.sinh(-3));
System.out.println(Math.sinh(0));
System.out.println(Math.sinh(1));
Definition and Usage
The sinh()
method returns the hyperbolic sine of a number.
The hyperbolic sine is equivalent to (Math.exp(number) - Math.exp(-number)) / 2
.
Syntax
public static double sinh(double number)
Parameter Values
Parameter | Description |
---|---|
number | Required. A number to find the hyperbolic sine of. |
Technical Details
Returns: | A double value representing the hyperbolic sine of a number. |
---|---|
Java version: | 1.5+ |
❮ Math Methods