Tan Function

Returns the tangent of the angle specified.

Syntax
result = Tan( value )

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

Return Value
Result | Double | The tangent of value.

# 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.

# Examples

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

Dim d As Double
Const PI=3.14159265358979323846264338327950
d=Tan(45*PI/180) //returns 1.0

# See Also

Atan function.