(x)
return _erf_taylor(x)
erf of a real number.
erf of a real number.
erf of a real number .
def erf(x):
    """
    erf of a real number.
    """
    x = float(x)
    if x != x:
        return x
    if x < 0.0:
        return -erf(-x)
    if x >= 1.0:
        if x >= 6.0:
            return 1.0
        return 1.0 - _erfc_mid(x)
    return _erf_taylor(x)
def erf ( x ) : x = float ( x ) if x != x : return x if x < 0.0 : return - erf ( - x ) if x >= 1.0 : if x >= 6.0 : return 1.0 return 1.0 - _erfc_mid ( x ) return _erf_taylor ( x )