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

Home » Public Forums » archive » Re: complex arithmetic
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: complex arithmetic [message #1924 is a reply to message #1922] Tue, 05 April 1994 23:49 Go to previous message
stl is currently offline  stl
Messages: 70
Registered: February 1994
Member
In article <1994Apr5.123735.8305@news.uit.no> royd@zapffe.mat-stat.uit.no (Roy Einar Dragseth) writes:
> Why isn't this supported:
> IDL> x = complex(0.,1.)
> IDL> print, x^(1./3.)
> % Operation illegal with complex type.
> % Execution halted at $MAIN$ .
>
> We are running IDL. Version 3.5.1 (hp-ux hp_pa) on a HP9000/755.
>
Hi,

neat little problem! I just tested this on my Sparc 10 running Solaris
4.1 with IDL version 3.5.1 and the problem seems even worse then you
stated. The following works:
IDL> x = complex(0.,1.)
IDL> print,x^(3)
( -0.00000, -1.00000

but, as soon as you change the print to include a float things blow up:
IDL> print,x^(3.)
% Operation illegal with complex type.
% Execution halted at $MAIN$ .

does anyone understand this? SHould such an operation even be allowed?

-stephen

--
Stephen C Strebel / SKI TO DIE
stl@maz.sma.ch / and
Swiss Meteorological Institute, Zuerich / LIVE TO TELL ABOUT IT
01 256 93 85 / (and pray for snow)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Map Projections ( PLATE CARREE )
Next Topic: JPEG routines for IDL

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

Current Time: Fri Oct 10 15:43:46 PDT 2025

Total time taken to generate the page: 0.16261 seconds