C# Math Cosh
Description
Math Cosh
returns the hyperbolic cosine of the specified
angle.
Syntax
Math.Cosh
has the following syntax.
public static double Cosh(
double value
)
Parameters
Math.Cosh
has the following parameters.
value
- An angle, measured in radians.
Returns
Math.Cosh
method returns The hyperbolic cosine of value. If value is equal to NegativeInfinity or
PositiveInfinity, PositiveInfinity is returned. If value is equal to NaN,
NaN is returned.
Example
The following code shows how to use Math.Cosh method.
using System;//from ww w.ja va2 s. c o m
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(Math.Cosh(0.5));
}
}
The code above generates the following result.