Math.Tanh Method (Double)

 

Returns the hyperbolic tangent of the specified angle.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

static member Tanh : 
        value:float -> float

Parameters

value
Type: System.Double

An angle, measured in radians.

Return Value

Type: System.Double

The hyperbolic tangent of value. If value is equal to NegativeInfinity, this method returns -1. If value is equal to PositiveInfinity, this method returns 1. If value is equal to NaN, this method returns NaN.

The angle, value, must be in radians. Multiply by Math.PI/180 to convert degrees to radians.

The following example uses Tanh to evaluate certain hyperbolic tangent identities for selected values.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: