You are here : python_3mathmatherf

math.erf() - math

Return the error function at
x.


Syntax

math.erf(x)


Example

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


Output / Return Value


Limitations


Alternatives / See Also


Reference