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