This is a special case of Euler's identity.  I suggest
   cos=:2&o.
   sin=:1&o.
   euler=:[EMAIL PROTECTED]@sin
   euler 1p1
1
   euler ?0
1
   euler ?100
1
   euler j./ ? 0 0
1

Best wishes,

John




Oleg Kobchenko wrote:
> The idea of Euler's identity was to combine
> the fundamental operations = + * ^
> and constants 0 1 1p1 1x1 0j1
>
> It only could be expanded with a couple of other
> J constants:
>
>    0e1=1r1+1x1^1p1*0j1
> 1
>
> For short
>    0=1+r.1p1
> 1
>


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

Reply via email to