[SciPy-User] error function with complex argument

Pauli Virtanen pav at iki.fi
Wed Oct 10 17:11:04 EDT 2012


Claas H. Köhler <claas.koehler <at> dlr.de> writes:
[clip]
> The bottom line is that erf is actually not (correctly) implemented
> for complex arguments, if I understand you correctly.

It is implemented correctly, in the sense that

    abs(z - z_exact) / abs(z_exact)

remains small. However, this does not mean that the real and imaginary parts 
separately are accurate. Of course, an implementation where also this was true 
would be desirable.

-- 
Pauli Virtanen




More information about the SciPy-User mailing list