The root of your problem is that you think that, because

1 2 3

is a list, that

a b c

1 a

1 ^0j0.25

should also be lists.  Not so.  number number number  is a special
case.  To join other things into lists, you have to use the

,

verb or its cousins.

See

http://www.jsoftware.com/jwiki/Guides/Language_FAQ

Item 2.

Henry Rich 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Pascal Heus
> Sent: Saturday, March 24, 2007 1:49 AM
> To: [email protected]
> Subject: [Jprogramming] Newbie question on ^o.0j0.25
> 
> Hi:
> Just getting started with J and am trying to create a 2 by 2 
> matrix with
> one cell containing the value ^o.0j0.25 (which is the constant value
> exp^ i pi/4)
> On it's own ^o.0j0.25 correctly evaluate as 0.707107j0.707107 
> but when I
> try to insert it in a table with other numbers like in '1 ^o.0j0.25' I
> get the wrong results.
> I suppose it gets interpreted a the diad ^ power instead of the mode ^
> exponential.. How can I get '1 ^o.0j0.25' to return '1
> 0.707107j0.707107' instead of '1'
> thanks
> Pascal
> 
> 
> -- 
> Astronomy compels the soul to look upwards and leads us from 
> this world to another.
> -- Plato, The Republic
> www.quotator.net
> 
> ----------------------------------------------------------------------
> For information about J forums see 
> http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to