Java Data Type Tutorial - Java StrictMath.sinh(double x)








Syntax

StrictMath.sinh(double x) has the following syntax.

public static double sinh(double x)

Example

In the following code shows how to use StrictMath.sinh(double x) method.

public class Main {
//  www . j  a v  a  2s .  c o m
  public static void main(String[] args) {
  
    double d1 = (90*Math.PI)/180 , d2 = 50, d3 = 0;
     
    System.out.println("Hyperbolic sine of d1 = " + StrictMath.sinh(d1));
        
    System.out.println("Hyperbolic sine of d2 = " + StrictMath.sinh(d2));
        
    System.out.println("Hyperbolic sine of d3 = " + StrictMath.sinh(d3));
  }
}

The code above generates the following result.