search for: 976259805u

Displaying 1 result from an estimated 1 matches for "976259805u".

2000 Dec 08
1
nmath bug (PR#762)
...ep in rpois can result in an infinite loop. The simplest thing I can come up with that reproduces the problem is the following. #include <stdio.h> #include <math.h> #include <time.h> #define MATHLIB_STANDALONE #include "Mathlib.h" int main() { double d; set_seed(976259805U,2968367341U); for(long k=0; k<10; k++) { for(long k=0; k<10000; k++) d = rpois(4500); for(long k=0; k<250000; k++) d = rpois(100); printf("."); fflush(stdout); } } Fro me this prints 3 dots and then hangs. I realize calling rpois with means this large is pr...