Method: Math#erf
- Defined in:
- math.c
#erf(x) ⇒ Float (private)
Returns the value of the Gauss error function for x.
- Domain: <tt>[-INFINITY, INFINITY]</tt>.
- Range: <tt>[-1, 1]</tt>.
Examples:
erf(-INFINITY) # => -1.0
erf(0.0) # => 0.0
erf(INFINITY) # => 1.0
: Math.erfc.
874 875 876 877 878 |
# File 'math.c', line 874 static VALUE math_erf(VALUE unused_obj, VALUE x) { return DBL2NUM(erf(Get_Double(x))); } |