Re: Bug on IDL 5.0 (VMS 6.2) with alog10() [message #9327] |
Mon, 23 June 1997 00:00 |
alpha
Messages: 49 Registered: September 1996
|
Member |
|
|
"Gilles Ratel" <ratel@ccfm.ireq.ca> writes:
> Jack Saba <jsabaxxx@magus.stxqr.com> wrote in article
>> HSR Sys-Admin wrote:
>>>
>>> here is some dammed error, which costs us a day to find:
-------------------------------
I
>>> VMS 6.2 IDL 5.0:
>>> print,alog10(0.0)
>>> hui! no error?
>>> and:
>>> print,alog10(0.0)*20
>>> what? a nice integer? but at least now with an error!
>>> under D-Unix the error did not occur!
>>> under 4.01 VMS it is the same as above!
>>> be aware of your math-routines and alog10!
>> We don't have the final version up yet, but for IDL5 beta on HP-UX
>> 10.10,
>> IDL> print,alog10(0.0)
>> ---.0000
>> % Program caused arithmetic error: Floating overflow
> Here, with idl v5.0 and openVMS 6.2-1H3
> $ idl
> IDL Version 5.0 (vms alpha). Research Systems, Inc.
> IDL> print,alog10(0.0)
> -1.70141e+38
> IDL> print,alog10(double(0.0))
> -1.7014118e+38
> % Program caused arithmetic error: Floating overflow
-----------------------------------------
II
> Also, if you have motif (DECWindows) look logical name DECW$USER_DEFAULTS
> example:
> $ DEFINE DECW$USER_DEFAULTS DISK:[path]
> $ idl
> IDL> id = WIDGET_BASE()
> IDL> exit
> $ SHOW LOGICAL DECW$USER_DEFAULTS
> and logical name is : ".0."
> exercice: define a button with font, and verify DECW$USER_DEFAUTS: and the
> answer is?
-----------------------------------------
III
try to change the working directory with cd:
cd,"node::disk:[path]"
what? not possible... hmmm with dialog_pickfile
it is working... and hardline-programming in openr
seems to work!
wiered bug in IDL 5.0 VMS!
-------------------------------------------
IV
VMS and NFS
mounted FS to an Unix-System:
on the unix-system with IDL 5.0:
openr,lun,file,/get_lun
gives you the nice answer:
"file name too long"
file="/mountpoint/sd1/sd2/sd3/sd4/sd5/sd6/sd7/sd8/sd9"
---------------------------------------------
moral of the tale:
it it hard to work under VMS
--
Panther in the Jungle __..--''``\--....___ _..,_
-BELIEVE AND DECEIVE- _.-' .-/"; ` ``<._ ``-+'~=.
http://www.ang-physik _.-' _..--.'_ \ `(^) )
.uni-kiel.de/~hendrik ((..-' (< _ ;_..__ ; `'
|
|
|
Re: Bug on IDL 5.0 (VMS 6.2) with alog10() [message #9336 is a reply to message #9327] |
Sat, 21 June 1997 00:00  |
Gilles Ratel
Messages: 5 Registered: March 1997
|
Junior Member |
|
|
Jack Saba <jsabaxxx@magus.stxqr.com> wrote in article
<33AA86A7.1A3D@magus.stxqr.com>...
> HSR Sys-Admin wrote:
>>
>> Hello,
>>
>> here is some dammed error, which costs us a day to find:
>>
>> VMS 6.2 IDL 5.0:
>>
>> print,alog10(0.0)
>>
>> hui! no error?
>>
>> and:
>>
>> print,alog10(0.0)*20
>>
>> what? a nice integer? but at least now with an error!
>>
>> under D-Unix the error did not occur!
>>
>> under 4.01 VMS it is the same as above!
>>
>> be aware of your math-routines and alog10!
>
> We don't have the final version up yet, but for IDL5 beta on HP-UX
> 10.10,
>
> IDL> print,alog10(0.0)
> ---.0000
> % Program caused arithmetic error: Floating overflow
>
Here, with idl v5.0 and openVMS 6.2-1H3
$ idl
IDL Version 5.0 (vms alpha). Research Systems, Inc.
IDL> print,alog10(0.0)
-1.70141e+38
IDL> print,alog10(double(0.0))
-1.7014118e+38
% Program caused arithmetic error: Floating overflow
Also, if you have motif (DECWindows) look logical name DECW$USER_DEFAULTS
example:
$ DEFINE DECW$USER_DEFAULTS DISK:[path]
$ idl
IDL> id = WIDGET_BASE()
IDL> exit
$ SHOW LOGICAL DECW$USER_DEFAULTS
and logical name is : ".0."
exercice: define a button with font, and verify DECW$USER_DEFAUTS: and the
answer is?
|
|
|
Re: Bug on IDL 5.0 (VMS 6.2) with alog10() [message #9343 is a reply to message #9336] |
Fri, 20 June 1997 00:00  |
Matt Phelps
Messages: 6 Registered: June 1997
|
Junior Member |
|
|
Jack Saba wrote:
>
> HSR Sys-Admin wrote:
>>
(snip)
>>
>> under 4.01 VMS it is the same as above!
>>
>> be aware of your math-routines and alog10!
>
> We don't have the final version up yet, but for IDL5 beta on HP-UX
> 10.10,
>
> IDL> print,alog10(0.0)
> ---.0000
> % Program caused arithmetic error: Floating overflow
FYI, Solaris (2.5.1) with IDL 5.0 (final) seems to do the right thing:
IDL> print,alog10(0.0)
-Inf
% Program caused arithmetic error: Floating divide by 0
--
Matt Phelps
System Administrator
Harvard - Smithsonian Center for Astrophysics
mphelps@cfa.harvard.edu
http://cfa-www.harvard.edu
|
|
|
Re: Bug on IDL 5.0 (VMS 6.2) with alog10() [message #9344 is a reply to message #9343] |
Fri, 20 June 1997 00:00  |
Jack Saba
Messages: 30 Registered: January 1996
|
Member |
|
|
HSR Sys-Admin wrote:
>
> Hello,
>
> here is some dammed error, which costs us a day to find:
>
> VMS 6.2 IDL 5.0:
>
> print,alog10(0.0)
>
> hui! no error?
>
> and:
>
> print,alog10(0.0)*20
>
> what? a nice integer? but at least now with an error!
>
> under D-Unix the error did not occur!
>
> under 4.01 VMS it is the same as above!
>
> be aware of your math-routines and alog10!
We don't have the final version up yet, but for IDL5 beta on HP-UX
10.10,
IDL> print,alog10(0.0)
---.0000
% Program caused arithmetic error: Floating overflow
|
|
|