# asinf(3) [centos man page]

ASIN(3) Linux Programmer's Manual ASIN(3)NAME

asin, asinf, asinl - arc sine functionSYNOPSIS

#include <math.h> double asin(double x); float asinf(float x); long double asinl(long double x); Link withFeature Test Macro Requirements for glibc (see feature_test_macros(7)): asinf(), asinl(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L; or cc-lm.-std=c99DESCRIPTION

The asin() function calculates the principal value of the arc sine of x; that is the value whose sine is x.RETURN VALUE

On success, these functions return the principal value of the arc sine of x in radians; the return value is in the range [-pi/2, pi/2]. If x is a NaN, a NaN is returned. If x is +0 (-0), +0 (-0) is returned. If x is outside the range [, 1], a domain error occurs, and a NaN is returned.-1ERRORS

See math_error(7) for information on how to determine whether an error has occurred when calling these functions. The following errors can occur: Domain error: x is outside the range [, 1] errno is set to EDOM. An invalid floating-point exception (FE_INVALID) is raised.-1CONFORMING TO

C99, POSIX.1-2001. The variant returning double also conforms to SVr4, 4.3BSD, C89.SEE ALSO

acos(3), atan(3), atan2(3), casin(3), cos(3), sin(3), tan(3)COLOPHON

This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. 2010-09-20 ASIN(3)

## Check Out this Related Man Page

asin(3M) Mathematical Library Functions asin(3M)NAME

asin, asinf, asinl - arc sine functionSYNOPSIS

c99 [ flag... ] file...[ library... ] #include <math.h> double asin(double x); float asinf(float x); long double asinl(long double x);-lmDESCRIPTION

These functions compute the principal value of the arc sine of their argument x. The value of x should be in the range [,1].-1RETURN VALUES

Upon successful completion, these functions return the arc sine of x in the range [-pi/2, pi/2] radians. For finite values of x not in the range [,1], a domain error occurs and a NaN is returned. If x is NaN, NaN is returned. If x is +-0, x is returned. If x is +-Inf, a domain error occurs and a NaN is returned. For exceptional cases, matherr(3M) tabulates the values to be returned by asin() as specified by SVID3 and XPG3.-1ERRORS

These functions will fail if: Domain Error The x argument is finite and not in the range [,1], or is +-Inf. If the integer expression (math_errhandling & MATH_ERREXCEPT) is non-zero, the invalid floating-point exception is raised. The asin() function sets errno to EDOM if x is not +-Inf or NaN and is not in the range [-1,1].-1USAGE

An application wanting to check for exceptions should call feclearexcept(FE_ALL_EXCEPT) before calling these functions. On return, if fetestexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW) is non-zero, an exception has been raised. An application should either examine the return value or check the floating point exception flags to detect exceptions. An application can also set errno to 0 before calling asin(). On return, if errno is non-zero, an error has occurred. The asinf() and asinl() functions do not set errno.ATTRIBUTES

See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+SEE ALSO

isnan(3M), feclearexcept(3M), fetestexcept(3M), math.h(3HEAD), matherr(3M), sin(3M), attributes(5), standards(5)SunOS 5.1112 Jul 2006 asin(3M)