Java Math sinh() Method

Facebooktwitterredditpinterestlinkedinmailby feather

The sinh() method of Java Math class returns the hyperbolic sine of the specified double value.

Syntax:

public static double sinh(double x)

Parameters:

The parameter ‘a’ represents the number whose hyperbolic sine is to be determined.

Return Value:

The sinh() method returns the hyperbolic sine of the argument.

  • It returns zero with same sign as argument, if the argument passed is zero.
  • It returns infinity with the same sign as the argument, if the argument is infinite.
  • It returns NaN, if the argument is NaN.

Example 1:

Output:

Example 2:

Output:

Example 3:

Output:

Example 4:

Output:

Example 5:

Output:

Facebooktwitterredditpinterestlinkedinmailby feather