Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropped NaN in eval_hermite #11369

Closed
jacksonvanover opened this issue Jan 15, 2020 · 0 comments · Fixed by #11486
Closed

Dropped NaN in eval_hermite #11369

jacksonvanover opened this issue Jan 15, 2020 · 0 comments · Fixed by #11486
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.special
Milestone

Comments

@jacksonvanover
Copy link

When the first argument is zero and the second argument is a NaN, eval_hermite returns 1.0. When the first argument is nonzero, the NaN is propagated as would be expected.

Reproducing code example:

Python 3.6.8 (default, Oct  7 2019, 12:59:55) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy import special
>>> import numpy as np
>>> special.eval_hermite(0, np.nan)
1.0
>>> special.eval_hermite(1, np.nan)
nan

Scipy/Numpy/Python version information:

1.4.1 1.17.4 sys.version_info(major=3, minor=6, micro=8, releaselevel='final', serial=0)

@tylerjereddy tylerjereddy added the defect A clear bug or issue that prevents SciPy from being installed or used as expected label Feb 12, 2020
@tylerjereddy tylerjereddy added this to the 1.5.0 milestone Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.special
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants