Returns the trigonometric tangent of an angle.

Syntax

TAN(<expN>)

<expN>

The size of the angle in radians. To convert an angle's degree value to radians, use DTOR( ). For example, to find the tangent of a 30-degree angle, use TAN(DTOR(30)).

Description

TAN( ) calculates the ratio between the side opposite an angle and the side adjacent to the angle in a right triangle. TAN( ) returns a number that increases from zero to plus or minus infinity. TAN( ) returns zero when <expN> is 0, pi, or 2*pi radians. TAN( ) is undefined (returns infinity) when <expN> is pi/2 or 3*pi/2 radians.

Use SET DECIMALS to set the number of decimal places TAN( ) displays.

The cotangent of an angle is the reciprocal of the tangent of the angle. To return the cotangent of an angle, use 1/TAN( ).