Math.tan()

Signature

double tan (double a)

Domain

ACTION, CONDITION, QUERY

Description

Returns the trigonometric tangent of an angle. Special cases:
If the argument is NaN or an infinity, then the result is NaN.
If the argument is zero, then the result is a zero with the same sign as the argument.
A result must be within 1 ulp of the correctly rounded result. Results must be semi-monotonic.

Parameters

NameTypeDescription
adoubleAn angle, in radians.

Returns

TypeDescription
doubleThe tangent of the argument.

Cautions

none