Home >>Java Math Methods >Java Math.sinh() method
The Math.sinh() method in Java Math is used to return the hyperbolic sine of a number. Any value x can be defined as the hyperbolic sine (ex-e -x)/2, where e is an Euler number.
public static double sinh(double x)
x = This parameter is used to the number whose hyperbolic sine is to be returned.
It is used to returns the hyperbolic sine of x.
public class MyClass
{
public static void main(String[] args)
{
double x = 15;
System.out.println(Math.sinh(x));
}
}
public class MyClass
{
public static void main(String[] args)
{
double x = -2.0/0;
System.out.println(Math.sinh(x));
}
}