On this page
math.erfc
Prev: math.erf | Up: math | Next: math.exp
Rel: math.acos, math.acosh, math.asin, math.asinh
Ref: docs.python.org — math.erfc
Tags: #public #python3 #stdlib #math
Import
import math
from math import erfc
Signature & Overview
math.erfc(x, /)
Complementary error function at x.
Usage
import math
assert math.isclose(math.erfc(0.0), 1.0)
assert math.erfc(5.0) > 0.0
Gotchas
- More accurate than
1 - math.erf(x)for large positivex: Avoids catastrophic cancellation in extreme tail probabilities.
REPL Inspect
from math import erfc
help(erfc)
Linked from
Related notes
- tuts/python3/stdlib_module/math/erf Linked here; links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/exp Linked here; links to this page; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/math/acos Linked here; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/acosh Linked here; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/asin Linked here; shared tags: #math, #stdlib
- tuts/python3/stdlib_module/math/asinh Linked here; shared tags: #math, #stdlib
- tuts/c/stdlib/math shared tags: #math, #stdlib
- tuts/c/stdlib/math/fabs shared tags: #math, #stdlib
- tuts/c/stdlib/math/floor shared tags: #math, #stdlib