bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Power Operator


From: Kacper Gutowski
Subject: Re: [Bug-apl] Power Operator
Date: Wed, 13 Aug 2014 18:40:27 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

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



reply via email to

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