comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: problem with IDL statistics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: problem with IDL statistics [message #20513] Wed, 28 June 2000 00:00
hahn is currently offline  hahn
Messages: 108
Registered: November 1993
Senior Member
ectucker@aol.com wrote:

> In my code I have the line:
> result=randomu(seed, binomial=[3.8e7, .72])
> this freezes up the code (acts as if it is in an infinite loop) at the
> statement above.
> If i change the 3.8e7 to 3.9e7, it works fine.

The same here: IDL 5.2, Windows 98. However,

> result=randomn(seed, 256,256,poisson=3.8e7)
> again it freezes up for 3.8e7 but not 3.9e7

This gives an error message:

IDL> result=randomn(seed, 256,256,poisson=3.8e7)
% Program caused arithmetic error: Floating underflow

> Very strange!

Indeed.

Norbert
Re: problem with IDL statistics [message #20514 is a reply to message #20513] Wed, 28 June 2000 00:00 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
I repeated it on my sparcstation - it works, but yields:

IDL> result = randomu(seed, binomial=[3.8e7,.72])
% Program caused arithmetic error: Floating underflow
IDL> print, result
2.73603e+07
IDL> print, !version
{ sparc sunos unix 5.1 Apr 13 1998}

"Vince Hradil" <hradilv@yahoo.com> wrote in message
news:8jd7ho$m4g$1@fizban.fizban.pprd.abbott.com...
> I just got the same results - but don't know why.
>
> IDL> print, !version
> { x86 Win32 Windows 5.3 Nov 11 1999}
>
> <ectucker@aol.com> wrote in message news:8jbauq$3og$1@nnrp1.deja.com...
>> In my code I have the line:
>> result=randomu(seed, binomial=[3.8e7, .72])
>> this freezes up the code (acts as if it is in an infinite loop) at the
>> statement above.
>> If i change the 3.8e7 to 3.9e7, it works fine.
>> It seems that certain ranges of values work and others don't.
>> It doesn't matter if I use integers, long integers, double
>> precision,etc.
>> I get the exact same problem when I use other similar statements, such
>> as:
>> result=randomn(seed, 256,256,poisson=3.8e7)
>> again it freezes up for 3.8e7 but not 3.9e7
>> Very strange!
>> Any comments?
>> Thanks,
>> Eric
>>
>>
>> Sent via Deja.com http://www.deja.com/
>> Before you buy.
>
>
Re: problem with IDL statistics [message #20515 is a reply to message #20513] Wed, 28 June 2000 00:00 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
I just got the same results - but don't know why.

IDL> print, !version
{ x86 Win32 Windows 5.3 Nov 11 1999}

<ectucker@aol.com> wrote in message news:8jbauq$3og$1@nnrp1.deja.com...
> In my code I have the line:
> result=randomu(seed, binomial=[3.8e7, .72])
> this freezes up the code (acts as if it is in an infinite loop) at the
> statement above.
> If i change the 3.8e7 to 3.9e7, it works fine.
> It seems that certain ranges of values work and others don't.
> It doesn't matter if I use integers, long integers, double
> precision,etc.
> I get the exact same problem when I use other similar statements, such
> as:
> result=randomn(seed, 256,256,poisson=3.8e7)
> again it freezes up for 3.8e7 but not 3.9e7
> Very strange!
> Any comments?
> Thanks,
> Eric
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: unwanted tick label
Next Topic: Creating a GIF file from a graphics window in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Nov 28 09:29:24 PST 2025

Total time taken to generate the page: 0.00821 seconds