[R] Problems raised to 1/3 power and NaN

Martin Maechler maechler at stat.math.ethz.ch
Tue Apr 27 18:10:32 CEST 2004


Well,

your example can be simplified to

> -1^(1/3)
[1] -1

> (-1)^(1/3)
[1] NaN

Do you see the light?





[think "precedence rules"]

Regards,
Martin




More information about the R-help mailing list