asin(p1)
public
Computes the arc sine of x. Returns -{PI/2} .. {PI/2}.
Show source
static VALUE
math_asin(VALUE obj, VALUE x)
{
double d0, d;
Need_Float(x);
errno = 0;
d0 = RFLOAT_VALUE(x);
d = asin(d0);
domain_check(d0, d, "asin");
return DBL2NUM(d);
}