Displaying 1 result from an estimated 1 matches for "mycuberoot".
Did you mean:
cuberoot
2009 Nov 17
3
Calculating the power of a negative number
Hello,
I use R a lot, one thing bugs me is that when I try the following
> x<- -8
> x^(1/3)
[1] NaN
However, it is fine with -8^(1/3). Priority goes to the power. Can you help
me out for this? Thanks.
Best,
Zhiyuan J. ZHENG
Ph.D. Candidate
Economic Department
Virginia Polytechnic Institute and State University
Phone: 540-231-5120 , Blacksburg, VA, 24060