On Tue, 2013-09-17 at 04:24 +0100, Luis Mochan wrote:
> pdl> p ($x/$y)**2
>   0.5+0i   (incorrect)
> pdl> p $z**2
>   0.25+0i  (correct)
> pdl> p ($q=$x/$y)**2
>   0.5+0i   (incorrect)
> pdl> p ($x/$y)**(2+0*i)
>   0.5+0i   (incorrect)
> 
The problem is that the brackets are interpreted by the print
(abbreviated "p") command. Try

p (($x/$y)**2)
p (($x/$y)**(2+0*i))
etc.

Paul



_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to