static public Method

Math.exp(p1)

Math.exp(x)     float

Returns e**x.

Source Code

/*
*  call-seq:
*     Math.exp(x)    => float
*  
*  Returns e**x.
*/

static VALUE
math_exp(obj, x)
   VALUE obj, x;
{
   Need_Float(x);
   return rb_float_new(exp(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.