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

Home » Public Forums » archive » 1e38 limit?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
1e38 limit? [message #65336] Fri, 27 February 2009 07:55 Go to previous message
paulartcoelho is currently offline  paulartcoelho
Messages: 30
Registered: March 2007
Member
hello,

i read float numbers from a text file, and eventually i need to
multiply them by large numbers ~1e40.
'result' is the array that i read from the text file, and 'chi' is the
array i'm analysing. i extract it with:

chi = double(reform(result[3,*]))

and then i do something like:

chi = chi * 1e40

but the routine apparently enters into an infinite loop, lots of CPU,
RAM and HD usage, and i end up having to kill the process after a
while. trial-and-error showed me that as long as i keep the
multiplicative factor <= 1e38, everything runs smoothly.

i tried even a stupid:
chi = chi * 1e38
chi = chi * 1e2

but the routine still gets crazy with that.

what is going on? how can i work it around?

many thanks,
paula
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDL on openSUSE
Next Topic: Re: Congrid and interpolate problem!

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

Current Time: Fri Oct 10 15:32:46 PDT 2025

Total time taken to generate the page: 1.20241 seconds