static public Method

Math.asin(p1)

Math.asin(x)     float

Computes the arc sine of x. Returns 0..PI.

Source Code

/*
*  call-seq:
*     Math.asin(x)    => float
*  
*  Computes the arc sine of <i>x</i>. Returns 0..PI.
*/

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);
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.