Moment(randomn(seed,1.e7)+100.) [message #9836] |
Thu, 04 September 1997 00:00 |
Andilu
Messages: 1 Registered: September 1997
|
Junior Member |
|
|
Can someone please explain what is going on here?
I am using IDL 4.0 on a SUN Ultra-Sparc running Solaris 2.5.
IDL> ran_nums = randomn(seed, 1.e7)
IDL> print, moment( ran_nums )
-9.62740e-05 0.984964 -0.00155998 0.0514126
IDL> print, moment( ran_nums + 100. )
110.819 68.0284 -2.29521 0.120336
This problem goes away with N_elements = 1.e6.
What is it that I need to know to explain this behavior?
Thanks.
Andrew F. Loughe | afl@cdc.noaa.gov
University of Colorado, CIRES Box 449 | http://cdc.noaa.gov/~afl
Boulder, CO 80309-0449 | phn:(303)492-0707 fax:(303)497-7013
------------------------------------------------------------ ---------------
"I do not feel obliged to believe that the same God who has endowed us with
sense, reason, and intellect has intended us to forego their use." -Galileo
|
|
|