static public Method

Math.tanh(p1)

Math.tanh()     float

Computes the hyperbolic tangent of x (expressed in radians).

Source Code

/*
*  call-seq:
*     Math.tanh()    => float
*  
*  Computes the hyperbolic tangent of <i>x</i> (expressed in
*  radians).
*/

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