static public Method

Math.erf(p1)

Math.erf(x)   float

Calculates the error function of x.

Source Code

/*
* call-seq:
*    Math.erf(x)  => float
*
*  Calculates the error function of x.
*/

static VALUE
math_erf(obj, x)
   VALUE obj, x;
{
   Need_Float(x);
   return rb_float_new(erf(RFLOAT(x)->value));
}
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.