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

Home » Public Forums » archive » sqrt(-1)??? answer depends on platform!!!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
sqrt(-1)??? answer depends on platform!!! [message #5500] Thu, 07 December 1995 00:00
brooker is currently offline  brooker
Messages: 12
Registered: March 1994
Junior Member
An observation I just made for IDL ver 3.5.1 and how it interprets SQRT(-1).
This should produce an error.

On a VAX 4000 WITH openvms you get:

IDL> a=sqrt(-1)
% Program caused arithmetic error: Square root of negative number
% Detected at: $MAIN$ (SQRT).


On a alpha running open vms you get:

IDL> a=sqrt(-1)
IDL> print,a
% PRINT: Variable is undefined: A.
% Execution halted at $MAIN$ (PRINT).
IDL>


On an alpha running unix/ultrix/osf:
IDL> a=sqrt(-1)
IDL> print,a
0.00000

peter b.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: emacs highlighting for .pro files
Next Topic: Saving animation images

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

Current Time: Wed Oct 08 17:57:53 PDT 2025

Total time taken to generate the page: 0.00528 seconds