None of the constructs below produce a constant,
i.e. something that can be combined with other
numbers in as in 1 2 3.

Here's one though: 1ad45,

   ~. 1ad45 , *1j1
0.707107j0.707107

But there is no way to use "ar" (radians) in
exact form, only

   ~. 1ad45 , 1ar0.785398163397448
0.707107j0.707107

It would be much better to say 1ar1r4p1 or
1x0j1r4p1 but the precedence does not allow it.
Why is it like that? Are there more compelling
cases for as it is right now?

Least const and most verbs expression can be such

   ~. 1ad45 , ^j.o.%4
0.707107j0.707107



See also
   http://www.jsoftware.com/jwiki/Guides/Constants
   http://www.jsoftware.com/help/dictionary/dcons.htm



--- Oleg Kobchenko <[EMAIL PROTECTED]> wrote:

> Note also, there are numerous ways to
> designate this point in J
> 
>    ~. (4%:_1) , (_1^1r4) , (r.1r4p1) , (^0j0.25p1) , (%:0j1) , ( *1j1 )
> 0.707107j0.707107
> 
> ~. showing they are all the same
> 
> See also http://www.jsoftware.com/jwiki/Essays/Complex_Operations
> 
> 
> --- Pascal Heus <[EMAIL PROTECTED]> wrote:
> 
> > 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
> > 
> 
> 
> 
>  
> ____________________________________________________________________________________
> The fish are biting. 
> Get more visitors on your site using Yahoo! Search Marketing.
> http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 



 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to