Re: CHECK_MATH and exp() [message #31926 is a reply to message #31890] |
Fri, 30 August 2002 12:36   |
jeyadev
Messages: 78 Registered: February 1995
|
Member |
|
|
In article <3D6CDC8E.DB526253@saicmodis.com>,
James Kuyper <kuyper@saicmodis.com> wrote:
Thanks for your reply ......
> Surendar Jeyadev wrote:
>>
>> Could someone please explain this:
> ...
>> WAVE> y = exp(-9.4^2)
>> % Program caused arithmetic error: Floating underflow
>> % Program caused arithmetic error: Floating illegal operand
>
> I only get the first message, not the second.
The begining of the differences .....!
> Since the exp() call occurred before the last interactive prompt, it
> doesn't count. Instead, try the following:
>
> IDL> y = exp(-9.4^2) & print,check_math(-1)
> % Program caused arithmetic error: Floating underflow
> 32
And I get
WAVE> y = exp(-9.4^2) & print,check_math(-1)
% Program caused arithmetic error: Floating underflow
% Program caused arithmetic error: Floating illegal operand
160
>> I am running PV-WAVE CL Version 6.01 (sun4 solaris sparc)
>> on a Sun Ultra 10 under Solaris 8.
Obviously, it is something to do with ....
> I am running idl 5.4 on an SGI machine running IRIX,
.... PV-Wave. Not sure if it is to do with the Sun version,
though.
thanks, anyway,
--
Surendar Jeyadev jeyadev@wrc.xerox.bounceback.com
Remove 'bounceback' for email address
|
|
|