Uwe Ligges wrote:

[EMAIL PROTECTED] wrote:

Full_Name: Allan Sims
Version: 2.1.0
OS: WinXP
Submission from: (NULL) (193.40.25.254)


This should not be correct. It seams that first power is applied and then sign.

-2^2


[1] -4

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel



So you are telling us in a *bug* report that R works as expected???
The current R Language Definition manual tells us in Section "Parser" - "Expressions" - "Infox and prefix operators" (which is 10.4.2 in the current version) the details on the order of precendence ("^" before unary "-"!).

Please read the docs before submitting bug reports!

Uwe Ligges



BTW: ?Syntax should have told you as well.

Uwe Ligges

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to