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

special.kn doesn't return inf (Trac #1783) #2302

Closed
scipy-gitbot opened this issue Apr 25, 2013 · 4 comments
Closed

special.kn doesn't return inf (Trac #1783) #2302

scipy-gitbot opened this issue Apr 25, 2013 · 4 comments
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected Migrated from Trac scipy.special
Milestone

Comments

@scipy-gitbot
Copy link

Original ticket http://projects.scipy.org/scipy/ticket/1783 on 2012-12-01 by @josef-pkt, assigned to @pv.

While trying to see whether any of the k Bessel function works for large arguments, I found this.

kn doesn't return inf, instead returns the largest float (?)

>>> special.kn(50, 1e-1)
1.7976931348623157e+308
>>> special.kn(2000, 1e-1)
1.7976931348623157e+308





>>> special.kv(50, 1e-1)
3.4241477644707505e+127
>>> special.kv(2000, 1e-1)
inf

I got strange results, because I was taking logs of it:

>>> np.log(special.kv(1000, 1e-1))
inf
>>> np.log(special.kn(1000, 1e-1))
709.78271289338397





>>> scipy.__version__
'0.9.0'
@scipy-gitbot
Copy link
Author

@josef-pkt wrote on 2012-12-01

python 2.6, windows 32 bit python (on 64 bit computer), in case it's relevant

@scipy-gitbot
Copy link
Author

@pv wrote on 2012-12-01

PR #369

@scipy-gitbot
Copy link
Author

@pv wrote on 2012-12-03

Fixed in d47bc968d

@scipy-gitbot
Copy link
Author

Milestone changed to 0.12.0 by @pv on 2012-12-03

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 Migrated from Trac scipy.special
Projects
None yet
Development

No branches or pull requests

1 participant