sin(p1)
public
Computes the sine of x (expressed in radians). Returns -1..1.
Show source
/*
* call-seq:
* Math.sin(x) => float
*
* Computes the sine of <i>x</i> (expressed in radians). Returns
* -1..1.
*/
static VALUE
math_sin(obj, x)
VALUE obj, x;
{
Need_Float(x);
return rb_float_new(sin(RFLOAT(x)->value));
}