Re: Program caused arithmetic error: Floating illegal operand [message #69483] |
Tue, 19 January 2010 13:47 |
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  |
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.
|
|
|