asin

Arcsine

double asin (
        double x
)

Arguments

x Argument. Range is [-1 to 1]

Return value

The arcsine of x (asin(x)) is returned. The result range is [-pi/2, pi/2].

Explanation

The arcsine of x is calculated and its value is returned.

Notes

Error processing is shown in the table below:

Condition Return value Error
fabs(x)>1 0 Domain error

See Also

sin(), acos(), atan()