Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

cephes.stdtr(10, math.huge) = nan #18

Closed
jucor opened this issue Dec 2, 2013 · 9 comments
Closed

cephes.stdtr(10, math.huge) = nan #18

jucor opened this issue Dec 2, 2013 · 9 comments

Comments

@jucor
Copy link
Contributor

jucor commented Dec 2, 2013

It should be 1.
I thought we had checked for this kind of problems: did I miss something?

@jucor
Copy link
Contributor Author

jucor commented Dec 2, 2013

The cut-off on my machine is 1e155:

t7> return cephes.stdtr(10, 1e154)
1
t7> return cephes.stdtr(10, 1e155)
0.5
t7>

@d11
Copy link
Contributor

d11 commented Dec 2, 2013

Yikes... it's different for me, too:

return cephes.stdtr(10, 10e153)
1
return cephes.stdtr(10, 10e154)
0.5

On 2 Dec 2013, at 13:58, Julien Cornebise [email protected] wrote:

The cut-off on my machine is 1e155:

t7> return cephes.stdtr(10, 1e154)
1
t7> return cephes.stdtr(10, 1e155)
0.5
t7>

Reply to this email directly or view it on GitHub.

@jucor
Copy link
Contributor Author

jucor commented Dec 2, 2013

And we have the same cutoff: 10e153 = 1e154.

@d11
Copy link
Contributor

d11 commented Dec 2, 2013

Oh, oops! Sorry, I should've spotted that :-)

On 2 Dec 2013, at 15:43, Julien Cornebise [email protected] wrote:

And we have the same cutoff: 10e153 = 1e154.


Reply to this email directly or view it on GitHub.

@jucor
Copy link
Contributor Author

jucor commented Dec 2, 2013

:-) The weird thing is that Cephes does not even generate an error!

@d11
Copy link
Contributor

d11 commented Dec 2, 2013

Yeah. I guess this may qualify as a Cephes bug, then… interestingly, scipy doesn't seem to have the problem! I can't see what they're doing differently right away though...

On 2 Dec 2013, at 15:45, Julien Cornebise [email protected] wrote:

:-) The weird thing is that Cephes does not even generate an error!


Reply to this email directly or view it on GitHub.

@jucor
Copy link
Contributor Author

jucor commented Dec 2, 2013

That's exactly what I'm looking for right now…

On 2 Dec 2013, at 15:56, Dan Horgan [email protected] wrote:

Yeah. I guess this may qualify as a Cephes bug, then… interestingly, scipy doesn't seem to have the problem! I can't see what they're doing differently right away though...

On 2 Dec 2013, at 15:45, Julien Cornebise [email protected] wrote:

:-) The weird thing is that Cephes does not even generate an error!


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@d11
Copy link
Contributor

d11 commented Dec 2, 2013

scipy/scipy@d4e3e60
possibly relevant? Just guessing though...

On 2 Dec 2013, at 15:57, Julien Cornebise [email protected] wrote:

That's exactly what I'm looking for right now…

On 2 Dec 2013, at 15:56, Dan Horgan [email protected] wrote:

Yeah. I guess this may qualify as a Cephes bug, then… interestingly, scipy doesn't seem to have the problem! I can't see what they're doing differently right away though...

On 2 Dec 2013, at 15:45, Julien Cornebise [email protected] wrote:

:-) The weird thing is that Cephes does not even generate an error!


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@jucor
Copy link
Contributor Author

jucor commented Dec 2, 2013

Merging issue with #19 , which has unit tests to reproduce the problem.

@jucor jucor closed this as completed Dec 2, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants