|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Power Operator |
Date: | Wed, 13 Aug 2014 19:42:25 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi Kacper, I believe the VALENCE ERROR comes because = is dyadic and the lambda is monadic? In GNU APL (and in the ISO standard) there is no monadic =, is it? Maybe in Dyalog APL there is? /// Jürgen On 08/13/2014 06:40 PM, Kacper Gutowski wrote:
That's interesting thing to see in GNU APL. Negative exponents are obviously tricky to do, but what about using boolean functions? It's a quite convenient way to succinctly express iteration. But right now GNU APL gives somewhat unexpected results: ({2+⍵÷2}⍣≡) 9 9 ({2+⍵÷2}⍣=) 9 VALENCE ERROR (λ1⍣=)9 ^ ^ In both cases Dyalog's answer would be 4, i.e. a fixed point of {2+⍵÷2}. -k
[Prev in Thread] | Current Thread | [Next in Thread] |