Tan

Description

Calculates the tangent of an angle.

Syntax

Tan ( n )

Argument

Description

n

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

Returns

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

Examples

Example 1

Both these expressions return 0:

Tan(0)
Tan(Pi(1))

Example 2

This expression returns 1.55741:

Tan(1)

See also