static public Method

Math.acosh(p1)

Math.acosh(x)     float

Computes the inverse hyperbolic cosine of x.

Source Code

/*
*  call-seq:
*     Math.acosh(x)    => float
*  
*  Computes the inverse hyperbolic cosine of <i>x</i>.
*/

static VALUE
math_acosh(obj, x)
   VALUE obj, x;
{
   double d;

   Need_Float(x);
   errno = 0;
   d = acosh(RFLOAT(x)->value);
   domain_check(d, "acosh");
   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.