GNOME Bugzilla – Bug 540211
r.phyper hang
Last modified: 2008-06-26 13:57:07 UTC
Version: r16670 OS: Ubuntu Hardy Steps to reproduce: - In A1, enter "=r.phyper(1.0e+65,,,)" (no quotes) Backtrace: Program received signal SIGINT, Interrupt.
+ Trace 201386
Thread 3061381728 (LWP 16708)
I am not sure whether this is really a "hang". In R if I enter phyper(1.0e+65,0,0,0); I finally give up after it used 100% of a core for a long time.
It's a hang. 1e65 - 1 is still 1e65 with double. But since there are only 0 red balls, anything beyond 0 is going to give the result 1. This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Upstreamed.
anything beyond 0 is going to give the result 1 ? x=0 is also guaranteed so that should give 1 too.
The condition I put in is (x >= NR), so yes when there are no red balls in the pot and you ask if picking 0 (or 42 or 1e65) balls will give you 0 or less red balls, the answer is "certainly!"