Re: Power function as operator
| From: | Sherif Ramadan | Date: | Sat, 23 Nov 2013 00:00:59 +0000 |
| Subject: | Re: Power function as operator | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70306@lists.php.net to get a copy of this message | ||
On Fri, Nov 22, 2013 at 6:59 PM, Jakub Zelenka <bukka@php.net> wrote:
> Hi,
>
>
>> I'm not entirely sure that making it non-associative is a great idea
>> either, but I have to agree that it does find *some* middle ground.
>> Right-associative exponent operator didn't seem right to me either.
>>
>
> I think there is a good mathematical reason for right associative
> exponent. It calls tetration or power tower. Please look at following
> sources for more details:
>
> http://math.stanford.edu/circle/notes08f/bignumbers.pdf
> http://en.wikipedia.org/wiki/Tetration
> http://mathworld.wolfram.com/PowerTower.html
>
> Regards
>
> Jakub
>
Right, that would be why I'm not *entirely* convinced.