Re: Power function as operator
| From: | Jakub Zelenka | Date: | Fri, 22 Nov 2013 23:59:36 +0000 |
| Subject: | Re: Power function as operator | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70305@lists.php.net to get a copy of this message | ||
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