static public Method

Math.tan(p1)

Math.tan(x)     float

Returns the tangent of x (expressed in radians).

Source Code

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

static VALUE
math_tan(obj, x)
   VALUE obj, x;
{
   Need_Float(x);

   return rb_float_new(tan(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.