标签: r cubic
如果我设置x = 0,然后计算: ((x+1)/(x-1))^(1/3);我得到NaN
((x+1)/(x-1))^(1/3)
但是我没有问题,
-1^(1/3)
以下两种方式也会导致错误:
((0+1)/(0-1))^(1/3) ((1)/(-1))^(1/3)
当然, ((x+1)/(x-1))是-1
((x+1)/(x-1))
有人知道R怎么了吗?