Math Functions

math.erfc()

Compute the complementary error function directly, avoiding loss of accuracy when erf(x) is close to one.

Formal Syntax & Structure

python syntaxpython
math.erfc(x, /)

Parameters & Attributes

NameTypeDescription
xreal numberInput real value.

Return Value

float

Floating-point result; finite precision and domain restrictions apply.

Working Example

Example Snippetpython
import mathprint(math.erfc(0))
Python Reference