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

2016-05-14 Thread David B. Lamkins
While `$ info apl` speaks to the issues around function/operator ambiguity, it does not make any mention of the outer product case. I suspect that the failure of "outer product expand" is an oversight. This case is disambiguated by noticing the outer product during the right-to-left scan that G

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

2016-05-14 Thread Xiao-Yong Jin
> On May 14, 2016, at 1:54 PM, Ala'a Mohammad wrote: > > Isn't it the same as using reshape instead? > > 3 0 2 ∘.⍴ 5 1 7 > 5 5 5 1 1 1 7 7 7 > > 5 51 17 7 In this case, yes. If you have nested structure, no. > > Best, > > Ala'a > > On Sat, May 14, 2016 at 10:31 PM, Xiao-Yo

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

2016-05-14 Thread Ala'a Mohammad
Isn't it the same as using reshape instead? 3 0 2 ∘.⍴ 5 1 7 5 5 5 1 1 1 7 7 7 5 51 17 7 Best, Ala'a On Sat, May 14, 2016 at 10:31 PM, Xiao-Yong Jin wrote: > >> On May 14, 2016, at 7:51 AM, David Tran wrote: >> >> Hi, >> >> Newbie study "MasteringDyalogAPL"; got error on pag

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

2016-05-14 Thread Xiao-Yong Jin
> On May 14, 2016, at 7:51 AM, David Tran 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 i

Re: [Bug-apl] user defined functions using Unicode math chars

2016-05-14 Thread Ala'a Mohammad
Hi Juergen, Thanks for the prompt response. How unfortunate, otherwise it will allow extending language's terseness and allowing for more compact solutions. Thanks again. Regards, Ala'a On Sat, May 14, 2016 at 7:34 PM, Juergen Sauermann wrote: > Hi Ala, > > the allowed characters in variable

[Bug-apl] Outer product with replicate error

2016-05-14 Thread David Tran
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 ? ) my GNU APL is latest trunk version 1.5 / 726. Thanks, David

[Bug-apl] user defined functions using Unicode math chars

2016-05-14 Thread Ala'a Mohammad
Hi, I'm trying to define user functions using some unicode characters, but gnu-apl complains about the characters used not being from the defined acceptable set: √ ← {⍵ ⋆ ÷2} Unknown APL character: √ (U+221A) Non-APL character ∛ ← {⍵ ⋆ ÷3} Unknown APL character: ∛ (U+221B) Non-APL charact