tan(p1)
Returns the tangent of x (expressed in radians).
/* * 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)); }