[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
WARNING on Numerical Recipes in C
From: |
donalson |
Subject: |
WARNING on Numerical Recipes in C |
Date: |
Fri, 09 Jul 1999 16:13:17 -0700 |
I have come upon two instances where there were major errors caused by using
Numerical Recipies. The first occurance was when a post-doc in mathmatical
ecology
was getting strange results from from the same simulation but using different
loop structures.
After a fair amount of discussion I suggested that he try another generator,
even something
as simple as RAND() to see what happened. Because the generator he was using
was from
such a respected source, he was very resistent but eventually agreed to try
it. The
problem went away.
Last month an almost idential situation happened, this time with a
physics/mathmatical ecology
doctoral student. Given that there was no apparent reason for the simualtion
behavior, I suggested
she try, (for test purposes only) RAND(). One again, the anomalies
disappeared.
There are obviously potentially serious problems with some of the RNG
algorithms in
Numerical Recipies, I don't know where they stem from nor which generators
were
involved. I do know that both individuals involved are very competent
programmers
and mathematicians, so the likelyhood of programming error on their part is
very low.
Moral of the story, run a good set of tests (Swen has provided references for
a bunch
of them in the swarm docs) before you depend on a generator from this
reference.
D3
--
*********************************************************************
* Doug Donalson Office: (805) 893-2962
* Ecology, Evolution, Home: (805) 961-4447
* and Marine Biology email address@hidden
* UC Santa Barbara
* Santa Barbara Ca. 93106
*********************************************************************
*
* The most exciting phrase to hear in science, the one that
* heralds new discoveries, is not "EUREKA" (I have found it) but
* "That's funny ...?"
*
* Isaac Asimov
*
*********************************************************************
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- Re: Robustness Check, (continued)
- Re: Robustness Check, Sven N. Thommesen, 1999/07/08
- Re: Robustness Check, Theodore C. Belding, 1999/07/09
- Re: Robustness Check, Theodore C. Belding, 1999/07/09
- Re: Robustness Check, Sven N. Thommesen, 1999/07/09
- Re: Robustness Check, Theodore C. Belding, 1999/07/09
- RE: Robustness Check (Bratley book), Randy Picker, 1999/07/09
- (Bratley book), Ginger Booth, 1999/07/09
- RE: Robustness Check (Bratley book), Theodore C. Belding, 1999/07/09
- WARNING on Numerical Recipes in C,
donalson <=
- Re: WARNING on Numerical Recipes in C, Theodore C. Belding, 1999/07/10
- Re: WARNING on Numerical Recipes in C -- and RNG's in general, Rick Riolo, 1999/07/12
- Re: Robustness Check, Benedikt Stefansson, 1999/07/08
- Re: Robustness Check, Rick Riolo, 1999/07/08
- Re: Robustness Check, Paul Johnson, 1999/07/08
- Re: Robustness Check, Marcus G. Daniels, 1999/07/09
- Re: Robustness Check, Marcus G. Daniels, 1999/07/08
- Re: Robustness Check and "A growing body of ad-hoc analysis solutions", Benedikt Stefansson, 1999/07/09
- Re: Robustness Check and "A growing body of ad-hoc analysis solutions", Paul E. Johnson, 1999/07/09
- RE: Robustness Check and "A growing body of ad-hoc analysis solutions", Randy Picker, 1999/07/09