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

Home » Public Forums » archive » Re: QROMB crashes IDL
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: QROMB crashes IDL [message #13627 is a reply to message #13623] Sun, 22 November 1998 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Kjetil Kjernsmo wrote:

> Dear all!
>
> I have an integral that I want to check if it converges or diverges,
> and of course, if it converges, I want the value. They say it must be
> evaluated numerically, so I figured I would try to solve it in IDL,
> and see what happens.
>
> Unfortunately, it seems that when the integral diverges, IDL crashes
> with the following message:
>
> % Program caused arithmetic error: Floating illegal operand
> Floating exception
>
> [... rest snipped]

> Kjetil

> --
> Kjetil Kjernsmo
> Graduate astronomy-student Problems worthy of attack
> University of Oslo, Norway Prove their worth by hitting back
> E-mail: kjetikj@astro.uio.no - Piet Hein
> Homepage <URL:http://www.astro.uio.no/~kjetikj/>
> Webmaster@skepsis.no

I wouldn't call this a crash. Th eerror message that you get is simply the warning of
IDL that it did encounter what you asked for : a NaN or Inf value! Check out the
online help section on "math errors" to learn how to control them. The other idea is
to test the validity of the expression with the finite() function before actually
evaluating it. ... and then there is always the good old way of looking at the
expression and testing for if (x ne 0.) then z=1/x etc. ;-)

Regards,
Martin.

--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Read Message
Previous Topic: Some expert input required
Next Topic: Saving problems

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

Current Time: Fri Oct 10 21:57:52 PDT 2025

Total time taken to generate the page: 1.19740 seconds