|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Power Operator |
Date: | Wed, 13 Aug 2014 12:23:29 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi Blake,
thanks. Negative powers build on the concept of an "inverse function". In GNU APL some of the primitives have inverse functions (+/- ×/÷, ⋆/⍟ and ○). But these inverse functions have rather strange effects, for example: 2 (+ ⍣ 40) 5 85 2 (- ⍣ ¯40) 5 85 2 (+ ⍣ ¯40) 5 5 2 (- ⍣ ¯40) 5 85 In the context of APL operators (+\ in the Dyalog example), the determination of the inverse function can get very complicated and is undefined in most cases. Given that I will no go down too far on the road to inverse functions. When I read about the power operator for the first time (around GNU APL 1.2 or so), it was the concept of inverse functions that made me think of ⍣ as a broken operator. /// Jürgen On 08/13/2014 01:53 AM, Blake McBride wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |