[Jprogramming] sin is odd
Roger Hui
rogerhui.canada at gmail.com
Wed Sep 11 17:34:36 UTC 2013
I prefer the following formulation:
(^&j. -: cos j. sin) 0.5*i.4
1
j. is one of those masterstrokes that separate genius from mere mortals.
On Wed, Sep 11, 2013 at 10:18 AM, km <km at math.uh.edu> wrote:
> sin =: 1&o.
> cos =: 2&o.
> i =: 0j1
> (^&j. -: cos + i * sin) 0.5*i.4
> 1
>
> Kip
>
> Sent from my iPad
>
>
> On Sep 11, 2013, at 11:42 AM, Raul Miller <rauldmiller at gmail.com> wrote:
>
> > ^&j. ..- 0.5*i.4
> > 1 0.877583 0.540302 0.0707372
> > 2 o. 0.5*i.4
> > 1 0.877583 0.540302 0.0707372
> > 1 o. 0.5*i.4
> > 0 0.479426 0.841471 0.997495
> > ^&.j. .:- 0.5*i.4
> > 0 0.479426 0.841471 0.997495
> >
> > --
> > Raul
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list