-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Closed
Labels
Description
EDIT: the original issue here was resolved a long time ago, Intel removed their erf
addition which wasn't in numpy. Issue retitled to reflect the discussion about adding np.erf
When np.erf
is given a complex number, it returns the number itself instead of the value of the error function. For example, scipy.special.erf(1+2j)
returns (-0.5366435657785664-5.0491437034470374j)
but np.erf
returns (1+2j)
itself.
Reproducing code example:
import numpy as np
print(np.erf(1)) # prints 0.8427007929497149 which is correct
print(np.erf(1+2j)) # prints (1+2j) which is incorrect
Error message:
None, but the return value is wrong for complex arguments. It is simply the argument itself. If complex inputs are not supported, an error should be thrown instead.
Numpy/Python version information:
1.15.4 3.7.1 (default, Oct 23 2018, 19:19:42)
[GCC 7.3.0]