x%y+y=0
Den 3:37 fredag den 6. maj 2016 skrev Joe Bogner <[email protected]>:
> > On 6 May 2016, at 10:53 AM, 'Pascal Jasmin' via Programming <
> [email protected]> wrote:
> >
> > I would go with first version. What don't you like about it?
Thanks - I don't particularly like using explicit rank. It also fails on
the atom case
It's also not particularly fast:
6!:2 '(?1e6#5) %^:(0~:])"0 (?1e6#5)'
0.703749
On Thu, May 5, 2016 at 9:25 PM, Ric Sherlock <[email protected]> wrote:
> How about:
>
> 3 2 4 (% * 0 ~: ]) 6 0 3
>
> 0.5 0 1.33333
>
>
Nice!
6!:2 '(?1e6#5) (% * 0 ~: ]) (?1e6#5)'
0.0489602
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm