ASINP 3CW "21 March 2008" "mathcw-1.00"

Table of contents


NAME

asinpf, asinp, asinpl, asinpw, asinpq, asinpll, asinpdf, asinpd, asinpdl, asinpdll - arc sine function

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern float asinpf (float x);

extern double asinp (double x);

extern long double asinpl (long double x);

extern __float80 asinpw (__float80 x);

extern __float128 asinpq (__float128 x);

extern long_long_double asinpll (long_long_double x);

extern decimal_float asinpdf (decimal_float x);

extern decimal_double asinpd (decimal_double x);

extern decimal_long_double asinpdl (decimal_long_double x);

extern decimal_long_long_double asinpdll (decimal_long_long_double x);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Compute the principal value of the arc sine function, defined by asinp(x) = asin(x) * fl(pi)/pi. The scale factor is essentially one, so this function just computes asin(x).

The value of x should be in the range [-1,+1], for which the function range is [-pi/2,+pi/2].


RETURN VALUES

For in-range arguments, the returned value is in the range [-pi/2,+pi/2]. Otherwise, the returned value is a quiet NaN.

ERRORS

For out-of-range, Infinity and NaN arguments, the returned value is a quiet NaN, and errno is set to EDOM.

SEE ALSO

acosp(3CW), atan2p(3CW), atanp(3CW), cosp(3CW), cotanp(3CW), sinp(3CW), tanp(3CW).