On Sun, Jul 19, 2009 at 7:33 PM, jim holtman<jholt...@gmail.com> wrote:
> -8^1/3 is parsed as -(8^1)/3 = -2.66666
>

However the following is evaluated as one would expect:
> 8^(1/3)
[1] 2
> -8^(1/3)
[1] -2

Perhaps it is parsed in this way:
> -(8^(1/3))
[1] -2

Liviu

______________________________________________
R-help@r-project.org mailing list
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