Functions

tan

Supported By

Syntax

[the] tan of factor

tan ( expression )

Factor and expression yield integers, numbers, or complexes.

Example

put the tan of 2 -- yields -2.185040

Description

The tan function returns the tangent of the angle that is passed to it. The angle must be expressed in radians.

If the argument is an integer or a number, a number is returned. If the argument is a complex, a complex is returned.

Note

Radians can be converted to degrees with the toDegrees function, or by multiplying by 180 and dividing by pi. Degrees can be converted to radians with the toRadians function, or by multiplying by pi and dividing by 180.