> On 18 Sep 2015, at 16:31 , John McKown <john.archie.mck...@gmail.com> wrote:
> 
> ref: https://en.wikipedia.org/wiki/Order_of_operations
> <quote>
> 
> If exponentiation is indicated by stacked symbols, the usual rule is to
> work from the top down, thus:
> [image: a^{b^c} = a^{(b^c)}],
[snip]

...and it might be added that this is (in "paper math") because (a^b)^c==a^{bc} 
and there would be no point in writing a^b^c if you might as well have written 
a^{bc}. (The curly braces only being there to indicate that the exponent is bc.)

Of course this sort of consideration hasn't always had effect on programmers, 
so you do need to check.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd....@cbs.dk  Priv: pda...@gmail.com

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to