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

Home » Public Forums » archive » Program caused arithmetic error: Floating underflow
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Program caused arithmetic error: Floating underflow [message #88782 is a reply to message #88780] Wed, 18 June 2014 09:10 Go to previous message
Chip Helms is currently offline  Chip Helms
Messages: 24
Registered: November 2012
Junior Member
On Wednesday, June 18, 2014 3:38:45 PM UTC, g.na...@gmail.com wrote:
> Why the last iteration will be divided by (17000^283)^283? I thought that for each iteration the value be divided by 17000.

If you still find yourself having issues locating the problem, you might double check that the issue isn't occurring somewhere else nearby in the code (I believe the default behavior is for IDL to issue math error warnings only when it returns to interactive prompt). If you set !EXCEPT=2, IDL will issue warnings (complete with line numbers) at the time the error occurs.

http://www.exelisvis.com/docs/error_handling_system_va.html# sysvars_272074529_1002623

Also, currently, your code is dividing the current running total by 17000 at each step (so the division occurs 284*284 or 80656 times, granted it's not the same as finding the total and dividing by 17000d^80656). I'm guessing this is to converge on the parameter value iteratively?

Cheers,
Chip
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: converting strings to float
Next Topic: map_set without any grid lines

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

Current Time: Wed Oct 08 14:21:48 PDT 2025

Total time taken to generate the page: 0.00439 seconds