Functions

sec

Supported By

Syntax

[the] sec of factor

sec ( expression )

Factor and expression yield integers, numbers, or complexes.

Example

put the sec of 2 -- yields -2.402998

Description

The sec function returns the secant 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.