C# | Math.Cosh() Method Last Updated : 26 Oct, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report Math.Cosh() is the inbuilt Math class method which returns the hyperbolic cosine of a given double value argument. Syntax: public static double Cosh(double num) Parameters: 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.Example: Input : 60.0 Output : 5.71003694907842E+25 Below programs illustrate the Math.Cosh method:Program 1: Csharp // C# program to illustrate the // Math.Cosh() using System; class GFG { // Main Method public static void Main(String[] args) { double num1 = 60.0, num2 = 0.0, num3 = 1.0; // It returns the hyperbolic cosine of // specified angle in radian double coshvalue = Math.Cosh(num1); Console.WriteLine("The cosh of num1 = " + coshvalue); coshvalue = Math.Cosh(num2); Console.WriteLine("The cosh of num2 = " + coshvalue); coshvalue = Math.Cosh(num3); Console.WriteLine("The cosh of num3 = " + coshvalue); } } Output: The cosh of num1 = 5.71003694907842E+25 The cosh of num2 = 1 The cosh of num3 = 1.54308063481524 Program 2: Csharp // C# program to illustrate the // Math.Cosh() Method using System; class GFG { // Main Method public static void Main(String[] args) { double num1 = (30 * (Math.PI)) / 180, num2 = 11.0, num3 = 45.0; // It returns the hyperbolic cosine of // angle in radian double coshvalue = Math.Cosh(num1); Console.WriteLine("The cosh of num1 = " + coshvalue); coshvalue = Math.Cosh(num2); Console.WriteLine("The cosh of num2 = " + coshvalue); coshvalue = Math.Cosh(num3); Console.WriteLine("The cosh of num3 = " + coshvalue); } } Output: The cosh of num1 = 1.14023832107643 The cosh of num2 = 29937.0708659498 The cosh of num3 = 1.74671355287425E+19 Comment More infoAdvertise with us Next Article C# | Math.Tanh() Method A Akanksha_Rai Follow Improve Article Tags : Misc C# CSharp-method CSharp-Math Practice Tags : Misc Similar Reads C# | Math.Cos() Method Math.Cos() is an inbuilt Math class method which returns the cosine of a given double value argument(specified angle).Syntax: public static double Cos(double num) Parameter: num: It is the angle(measured in radian) whose cosine is to be returned and the type of this parameter is System.Double. Retur 2 min read C# | Math.Sinh() Method 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 2 min read C# | Math.Tanh() Method Math.Tanh() is the inbuilt Math class method which returns the hyperbolic tan of a given double value argument. The result will be NaN if the given argument is NaN.Syntax: public static double Tanh(double num) Parameter: num: It is the number whose hyperbolic tan is to be returned and type of this p 2 min read JavaScript Math cosh() Method JavaScript Math.cosh() method is used to calculate the value of the hyperbolic cosine of a number.Syntax:Math.cosh(x)Â Â Parameter: This method accepts a single parameter as mentioned above and described below:x: This parameter holds a number for which the value of hyperbolic cosine is going to be ca 3 min read JavaScript Math acosh() Method The Javascript Math.acosh() function in Javascript is used to return the hyperbolic arc-cosine of a number. Math.acosh (x) = arcosh(x) = y â§ 0 such that cosh (y)=x acosh() is a static method of Math, therefore it is always used as Math.acosh(), rather than as a method of a Math object created. Synta 2 min read MathF.Cosh() Method in C# with Examples Math.Cosh(Single) Method is the inbuilt MathF class method which returns the hyperbolic cosine of a given single value argument. Syntax: public static float Cosh (float x); Here, x is the number whose hyperbolic cosine is to be returned and type of this parameter is System.Single. Return Value: This 2 min read Like