[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] n wise reduction after 740
From: |
Christian Robert |
Subject: |
Re: [Bug-apl] n wise reduction after 740 |
Date: |
Mon, 13 Jun 2016 22:47:06 -0400 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
How was that outputting *before* svn 740 ?
On 2016-06-13 22:11, Xiao-Yong Jin wrote:
Hello,
It breaks when the left argument is 1. In addition, with the internal macros,
the si stack is polluted.
1+/⍳5
1 2 3 4 5
NARS2000 give the exact same result:
1+/⍳5
1 2 3 4 5
quite strange, not sure what this should output, so, in gnuapl:
1+/⍳5
1 2 3 4 5
2+/⍳5
3 5 7 9
10+/⍳5
DOMAIN ERROR
10+/⍳5
^ ^
3+/⍳5
6 9 12
4+/⍳5
10 14
5+/⍳5
15
6+/⍳5
7+/⍳5
DOMAIN ERROR
7+/⍳5
^ ^
I really don't know what this syntax is supposed to do, but it has a
fair/straight pattern.
1{⍺+⍵}/⍳5
INDEX ERROR
μ-Z__pA_LO_REDUCE_X_B[5] μ-T←⊂(⊃μ-B1[μ-H;μ-a-μ-M;μ-L])μ-LO⊃μ-T
^ ^
NARS200 give here:
1{⍺+⍵}/⍳5
DOMAIN ERROR
1{⍺+⍵}/⍳5
∧
my 2 cents, (still newbie and will be for years)
Xtian.
)sis
μ-Z__pA_LO_REDUCE_X_B[5] μ-T←⊂(⊃μ-B1[μ-H;μ-a-μ-M;μ-L])μ-LO⊃μ-T
^ ^
⋆ 1{⍺+⍵}/⍳5
^
)sinl
μ-Z__pA_LO_REDUCE_X_B[5] μ-Z μ-A μ-LO μ-B μ-B1 μ-rho_Z μ-rho_B1 μ-T μ-H μ-M
μ-L μ-a μ-N μ-I μ-I_max
⋆
Best,
Xiao-Yong