Tan

Description

Calculates the tangent of an angle.

Syntax

Tan ( n )

Argument

Description

n

The angle (in radians) for which you want the tangent


Return value

Double. Returns the tangent of n if it succeeds and -1 if an error occurs.

Examples

Both these expressions return 0:

Tan(0)
Tan(Pi(1))

This expression returns 1.55741:

Tan(1)

See also

Cos

Pi

Sin