exp function bug [message #7587] |
Thu, 05 December 1996 00:00  |
Robert Cannon
Messages: 5 Registered: February 1996
|
Junior Member |
|
|
Can anyone tell me what is going on here, or if it happens on other
platforms?
The first time I call exp (-710.72026d0) after starting idl I get:
hera:~> idl
IDL. Version 4.0.1 (IRIX mipseb).
IDL> print, exp (-710.72026d0)
2.8462073e+134
IDL> print, exp (-710.72026d0)
2.1782760e-309
This is on an sgi crimson. I get the impression the same may happen on
an alpha, but for a different value - it has to be -710.72026d0 on the
sgi: -710.72025d0 works fine.....
robert
Neuroscience Research Group Tel: (0)1703 594286
School of Biologial Sciences Fax: (0)1703 594319
Bassett Crescent East rcc@hera.neuro.soton.ac.uk
Southampton SO16 7PX
|
|
|
Re: exp function bug [message #7693 is a reply to message #7587] |
Tue, 10 December 1996 00:00  |
David R. Klassen
Messages: 14 Registered: December 1996
|
Junior Member |
|
|
David Fanning wrote:
>
> Andy Loughe <afl@cdc.noaa.gov> wrote:
>
>> Robert Cannon wrote:
>>>
>>> Can anyone tell me what is going on here, or if it happens on other
>>> platforms?
>>>
>>> The first time I call exp (-710.72026d0) after starting idl I get:
>>>
>>> hera:~> idl
>>> IDL. Version 4.0.1 (IRIX mipseb).
>>>
>>> IDL> print, exp (-710.72026d0)
>>> 2.8462073e+134
>>> IDL> print, exp (-710.72026d0)
>>> 2.1782760e-309
>>>
>>> This is on an sgi crimson. I get the impression the same may happen on
>>> an alpha, but for a different value - it has to be -710.72026d0 on the
>>> sgi: -710.72025d0 works fine.....
>>
>>
>> For interest's sake...
>> This does not happen on a SUN SparcStation running Solaris 2.5
>
> Doesn't happen on a Mac either.
>
> David
>
> -----------------------------------------------------------
> David Fanning, Ph.D.
> Fanning Software Consulting
> 2642 Bradbury Court, Fort Collins, CO 80521
> Phone: 970-221-0438 Fax: 970-221-4762
> E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com
> -----------------------------------------------------------
Nor on Win32.
--
David R. Klassen
Department of Physics and Astronomy
University of Wyoming
Box 3905 University Station
Laramie WY 82071
http://faraday.uwyo.edu/grads/dklassen/
drk@uwyo.edu
|
|
|