asin(p1)
public
Computes the arc sine of x. Returns -{PI/2} .. {PI/2}.
Show source
/*
* call-seq:
* Math.asin(x) => float
*
* Computes the arc sine of <i>x</i>. Returns -{PI/2} .. {PI/2}.
*/
static VALUE
math_asin(obj, x)
VALUE obj, x;
{
double d;
Need_Float(x);
errno = 0;
d = asin(RFLOAT(x)->value);
domain_check(d, "asin");
return rb_float_new(d);
}