3.5.1.2.10 Asec

Contents

Description

The asec(x) function returns the inverse of the corresponding trigonometric function sec(x)=1/cos(x). Absolute value of x must greater than or equal to 1 for asec, or a missing value is returned. Values returned are in the first or second quadrant in units of radians, degree or gradian. The units are determined by (which can also be set in ).


Syntax

double asec(double x)

Parameter

x

can be any real number whose absolute is greater than or equal to 1.

Return

Returns the arcsecant of x.

Example

aa = asec(1);
aa = ; //should return 0

See Also

, , , ,