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.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version