C# | Math.Sinh() Method
Last Updated :
26 Oct, 2021
Math.Sinh() is the inbuilt Math class method which returns the hyperbolic sine of a given double value argument(specified angle).
Syntax:
public static double Sinh(double num)
Parameters:
num: It is the number whose hyperbolic sine is to be returned and type of this parameter is System.Double.
Return Value: The method returns the hyperbolic Sine of num of type System.Double. If num is equal to NegativeInfinity, PositiveInfinity, or NaN, this method returns a Double equal to num.
Input : num = 60.0
Output : 5.71003695E25
Below programs illustrate the Math.Sinh method:
Program 1:
Csharp
using System;
class GFG {
public static void Main(String[] args)
{
double num1 = 78.8, num2 = 0.0, num3 = 1.0;
double sinhvalue = Math.Sinh(num1);
Console.WriteLine( "The sinh of num1 = " + sinhvalue);
sinhvalue = Math.Sinh(num2);
Console.WriteLine( "The sinh of num2 = " + sinhvalue);
sinhvalue = Math.Sinh(num3);
Console.WriteLine( "The sinh of num3 = " + sinhvalue);
}
}
|
Output:
The sinh of num1 = 8.34401696285252E+33
The sinh of num2 = 0
The sinh of num3 = 1.1752011936438
Program 2:
Csharp
using System;
class GFG {
public static void Main(String[] args)
{
double num1 = (30 * (Math.PI)) / 180, num2 = 11.0, num3 = 45.0;
double sinhvalue = Math.Sinh(num1);
Console.WriteLine( "The sinh of num1 = " + sinhvalue);
sinhvalue = Math.Sinh(num2);
Console.WriteLine( "The sinh of num2 = " + sinhvalue);
sinhvalue = Math.Sinh(num3);
Console.WriteLine( "The sinh of num3 = " + sinhvalue);
}
}
|
Output:
The sinh of num1 = 0.54785347388804
The sinh of num2 = 29937.0708492481
The sinh of num3 = 1.74671355287425E+19
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...