bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Help using the power operator


From: Kacper Gutowski
Subject: Re: [Bug-apl] Help using the power operator
Date: Fri, 30 Oct 2015 15:27:48 +0100

On Fri, Oct 30, 2015 at 2:39 PM, Kacper Gutowski <address@hidden> wrote:
>       i←0 ◊ 4×{⍵+(¯1*i+1)÷¯1+2×i←i+1}⍣1000000⊢0

This is slightly faster and doesn't use global variables:

      ↑{(+/⍵[1],4÷1↓⍵),4 ¯4+1↓⍵}⍣500000⊢0 1 ¯3

Nowhere near “simple and natural,” though.

-k

reply via email to

[Prev in Thread] Current Thread [Next in Thread]