[Jprogramming] sin is odd

km km at math.uh.edu
Wed Sep 11 17:18:32 UTC 2013


    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


More information about the Programming mailing list