Math.Tan Method (Double)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the tangent of the specified angle.

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

static member Tan : 
        a:float -> float

Parameters

a
Type: System.Double

An angle, measured in radians.

Return Value

Type: System.Double

The tangent of a. If a is equal to NaN, NegativeInfinity, or PositiveInfinity, this method returns NaN.

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

The following example demonstrates how to calculate the tangent of an angle and display it to the console.

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: