[SciPy-User] error function with complex argument

Pauli Virtanen pav@iki...
Wed Oct 10 16:11:04 CDT 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