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

 


        [[alternative HTML version deleted]]

______________________________________________
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