class method
Math.erfc
(::Math::double x) -> ::Float
Math.erfc(x) → Float
math.c
View on GitHub ↗
static VALUE
math_erfc(VALUE unused_obj, VALUE x)
{
return DBL2NUM(erfc(Get_Double(x)));
}
Returns the value of the complementary error function for x.
-
Domain:
[-INFINITY, INFINITY]. -
Range:
[0, 2].
Examples:
Example
erfc(-INFINITY) # => 2.0 erfc(0.0) # => 1.0 erfc(INFINITY) # => 0.0
Related: Math.erf.