^ _1j3
_0.364198j0.0519151
   ^ (_1)+j. 3
_0.364198j0.0519151
   
   ^ (_1 _10 _100 )+j. 3
_0.364198j0.0519151 _4.49456e_5j6.40684e_6 _3.68285e_44j5.24977e_45
   ^ (_1 _10 _100 _1000)+j. 3
|limit error
|       ^(_1 _10 _100 _1000)+j.3

   ^ _1000j3
|limit error
|       ^_1000j3

I mentioned a similar problem before ( 
http://www.jsoftware.com/pipermail/general/2006-January/026196.html )

"My favorite still is,

   0 -: (0j0.5&^) _
│limit error
│   0-:    (0j0.5&^)_
"


----- Original Message ----
From: Dan Bron <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, February 13, 2008 1:45:04 PM
Subject: Re: [Jprogramming] Exponenta from complex


Alexandr Batalshikov:
>  ^ __j3
>  is "limit error" but not zero?

At first I thought this reduced to this (understandable) limit error:

      1 o. __
    |limit error
    |  1    o.__
      
But it does not.  The phrase  ^3j__  reduces to that error, but AFAICT 
^__j3  is equivalent to:

      (^__) * (2 o. 3) + 0 j. 1 o. 3
    0

That is, if this model of  ^  for complex numbers is correct:

    pow_cplx =: 1x1 &$: : (dyad define)
    
        'r i'=. |: +. y * ^. x
        
        NB. (a^b+c) = */a^b c  and 
        NB. (1x1^0 j. a) = (2 o. a) +  0 j. 1 o. a
    
        (^r) * +/ 1 0j1 * 2 1 o./ i  
    )

Then  ^__j3  should indeed be zero:

      pow_cplx __j3
    0
-Dan
-- 
View this message in context: 
http://www.nabble.com/Exponenta-from-complex-tp15458026s24193p15463034.html
Sent from the J Programming mailing list archive at Nabble.com.

----------------------------------------------------------------------
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