ID EN
Math

erf

Python 3.11

Return the error function at x.

Syntax

PYTHON
math.erf(x)

Examples

Example 1
PYTHON
def phi(x):
    'Cumulative distribution function for the standard normal distribution'
    return (1.0 + erf(x / sqrt(2.0))) / 2.0

See Also

erf()