Method

Tan


Description

Returns the tangent of the angle specified.

Usage

result=Tan (value)

Part

Type

Description

result

Double

The tangent of value.

value

Double

The value (in radians) you want the tangent of.

Notes

The Tan function returns the tangent of the angle (in radians) passed to it. If the angle is in degrees, multiply it by PI/180 to convert it to radians.

Sample code

This example uses the Tan function to return the tangent of a number.

Var d As Double
Const kPi = 3.14159265
d = Tan(45 * kPi / 180) // returns 1.0

Compatibility

All project types on all supported operating systems.

See also

Atan function.