Math.Cosh() is the inbuilt Math class method which returns the hyperbolic cosine of a given double value argument.
public static double Cosh(double num)
num: It is the number whose hyperbolic cos is to be returned and type of this parameter is System.Double.
Return Value: The method returns the hyperbolic cos of num of type System.Double. If num is equal to NegativeInfinity or PositiveInfinity, PositiveInfinity is returned. If num is equal to NaN, NaN is returned.
Input : 60.0 Output : 5.71003694907842E+25
Below programs illustrate the Math.Cosh method:
The cosh of num1 = 5.71003694907842E+25 The cosh of num2 = 1 The cosh of num3 = 1.54308063481524
The cosh of num1 = 1.14023832107643 The cosh of num2 = 29937.0708659498 The cosh of num3 = 1.74671355287425E+19
- Difference between Method Overriding and Method Hiding in C#
- C# | Math.Min() Method
- C# | CopyTo() Method
- TimeSpan.Add() Method in C#
- C# | Method Overriding
- C# | Trim() Method
- C# | Remove() Method
- Main Method in C#
- C# | IndexOfAny() Method
- Decimal.Add() Method in C#
- C# | Insert() Method
- C# | Replace() Method
- C# | Math.Max() Method
- Stack.Contains() Method in C#
- C# | Uri.IsHexEncoding() Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.