Guardian C Library Calls Reference Manual
Reference to Library Calls
Guardian TNS C Library Calls Reference Manual—128833 3-5
asin
asin
The asin function computes the arc sine of its argument.
expr
is an expression of type double whose value is in the range -1 to +1.
Return Value
is the arc sine of expr, expressed as a double value in the range -pi/2 to +pi/2
radians. If expr is not in the interval -1 to +1, asin returns the value zero and sets
errno to EDOM (a domain error).
Example
This example prints “The arc sine is 1.570796.”
#include <mathh>
#include <stdioh>
int main(void)
{
double r, x;
x = 1.0;
r = asin(x);
printf("The arc sine is %f.", r);
}
#include <mathh>
double asin(double expr);