bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Outer product with replicate error


From: Xiao-Yong Jin
Subject: Re: [Bug-apl] Outer product with replicate error
Date: Sat, 14 May 2016 13:31:13 -0500

> On May 14, 2016, at 7:51 AM, David Tran <address@hidden> wrote:
> 
> Hi,
> 
> Newbie study "MasteringDyalogAPL"; got error on page #388 example:
> 
>       3 0 2 ∘./ 5 1 7
> SYNTAX ERROR
>       3 0 2∘./5 1 7
>       ^      ^
> 
> bug? ( or this is a specify feature of Dyalog and not APL2 ? )

It’s documented in the info page of gnu apl.  A feature (bug?) of the parser 
treats / as an operator in this case.  Simple workaround would be

      3 0 2 ∘.{⍺/⍵} 5 1 7
 5 5 5  1 1 1  7 7 7 
                     
 5 5    1 1    7 7   

I have too limited experience to say whether it is good or bad.  Perhaps the 
parser should accept some exceptional cases?

Best,
Xiao-Yong




reply via email to

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