The Math.sinh() method returns the hyperbolic sine of a double-type value.


Math.sinh(double num)

The return type of the .sinh() method is a double.

Some special cases for the .sinh() method include the following:

  • If num is NaN, then the result is NaN.
  • If num is infinite, then infinity is returned with the same sign as num.
  • If num is zero, then zero is returned with the same sign as num.

The computed result will be within 2.5 units of least precision (ulps) of the exact result.


The following example demonstrates the application of .sinh() method:

// Check.java
public class Check {
public static void main(String args[]) {
double num = 64.0;

This results in the following output:



Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn Java on Codecademy