bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] ⍤ Rank


From: Juergen Sauermann
Subject: Re: [Bug-apl] ⍤ Rank
Date: Thu, 25 Feb 2016 14:58:15 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Louis,

thanks, fixed in SVN 696.

/// Jürgen


On 02/19/2016 02:51 AM, Louis de Forcrand wrote:
If I have a function FIB:

    ∇
[0]   R←FIB N
[1]   R←0 1
[2]   →(N≤¯1+⍴R)/5
[3]   R←R,+/¯2↑R
[4]   →2
[5]   R←R[N+1]
    ∇

and use ⍤ on it to produce a vector of the fibonacci series from 0 to 9:

      (FIB⍤0) ¯1+⍳10
INDEX ERROR+
FIB[5]  R←R[N+1]
          ^^

However:

      (FIB⍤0) 0 1 2 3 4 5 6 7 8 9 
0 1 1 2 3 5 8 13 21 34
      (FIB⍤0) (¯1+⍳10)
0 1 1 2 3 5 8 13 21 34
      FIB⍤0 (¯1+⍳10)
0 1 1 2 3 5 8 13 21 34

Best regards,
Louis





reply via email to

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