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

Home » Public Forums » archive » Re: Program caused arithmetic error: Floating illegal operand
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: Program caused arithmetic error: Floating illegal operand [message #69483] Tue, 19 January 2010 13:47
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Tue, 19 Jan 2010, Whitepanther wrote:

> Grrr....I'm pretty annoyed with IDL right now. This may be the last
> straw for the day but I thought I'd see if I could get some help. I
> know which two lines of codes are causing this error. The funniest
> part of it is, THERE ARE NO ZEROS! I've printed out all of the lists
> that I'm dividing by. There are no zeros (my data doesn't even cross
> the axes for the section I'm running the code on). I even checked the
> variables that I'm writing the division to, and it has all real
> numbers, no NaN or anything. So, I was wondering if anybody has any
> other ideas why this error pops up? My computer has crashed several
> times in the process of trying to sort this out and mostly I just walk
> away until its done running so the overload of text doesn't crash me :(
>

IDL> x=sqrt(-1)
% Program caused arithmetic error: Floating illegal operand

No NaN, no zero :-) Floating illegal operand may mean illegal input value
for math functions.

regards,
lajos
Re: Program caused arithmetic error: Floating illegal operand [message #69485 is a reply to message #69483] Tue, 19 January 2010 13:11 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Jan 19, 4:06 pm, Whitepanther <tif...@gmail.com> wrote:
> Grrr....I'm pretty annoyed with IDL right now. This may be the last
> straw for the day but I thought I'd see if I could get some help. I
> know which two lines of codes are causing this error. The funniest
> part of it is, THERE ARE NO ZEROS! I've printed out all of the lists
> that I'm dividing by. There are no zeros (my data doesn't even cross
> the axes for the section I'm running the code on). I even checked the
> variables that I'm writing the division to, and it has all real
> numbers, no NaN or anything. So, I was wondering if anybody has any
> other ideas why this error pops up? My computer has crashed several
> times in the process of trying to sort this out and mostly I just walk
> away until its done running so the overload of text doesn't crash me :(

Might help if you showed us the lines of code. :-)=

-Jeremy.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Program caused arithmetic error: Floating illegal operand
Next Topic: Re: help on avoiding a FOR loop

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

Current Time: Wed Oct 08 11:43:33 PDT 2025

Total time taken to generate the page: 0.00953 seconds