Math.Sinh() Method in C#


The Math.Sinh() method in C# is used to return the hyperbolic sine of a specified angle.

Syntax

Following is the syntax −

public static double Sinh(double val)

Above, the argument value is the angle.

Example

Let us now see an example to implement the Math.Sinh() method −

using System;
public class Demo {
   public static void Main(){
      double val1 = 30.0;
      double val2 = 45.0;
      Console.WriteLine(Math.Sinh(val1));
      Console.WriteLine(Math.Sinh(val2));
   }
}

Output

This will produce the following output −

5343237290762.23
1.74671355287425E+19

Example

Let us see another example to implement the Math.Sinh() method −

using System;
public class Demo {
   public static void Main(){
      double val1 = 0.0;
      double val2 = 1.1;
      Console.WriteLine(Math.Sinh(val1));
      Console.WriteLine(Math.Sinh(val2));
   }
}

Output

This will produce the following output −

0
1.33564747012418

Updated on: 11-Nov-2019

34 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements