What is Math.Sinh() in C#?

C# has a built-in Math class which provides useful mathematical functions and operations. The class has the Sinh() function, which is used to compute the hyperbolic sine of a specified angle.

Syntax

public static double Sinh (double value);

Parameters

  • value: This is of the Double type and represents the angle for which we have to find Sinh(). The angle is measured in radians.

Return value

  • Double: This value returns a hyperbolic sine of value, and its type is Double.

  • value: This returns the same value if input is NaN, PositiveInfinity or NegativeInfinity.

Multiply degrees by *Math.PI/180 to convert degrees to radians.

Example

using System;
class Educative
{
static void Main()
{
Double result = Math.Sinh(1);
System.Console.WriteLine("Sinh(1) = "+ result);
Double result1 = Math.Sinh(0);
System.Console.WriteLine("Sinh(0) = "+ result1);
Double result2 = Math.Sinh(Double.PositiveInfinity);
System.Console.WriteLine("Sinh(∞) = "+ result2);
}
}

Free Resources