在 R 中找到第 N 个根

Find the Nth root in R

我们如何找到 R 中的第 N 个根?

4^2 = sqrt(16)

但是反变换的代码片段是什么;

4^7 = ???

简单

sqrt(4) == 4^(1/2)
# 7th root of 4
4^(1/7)

In calculus, roots are treated as special cases of exponentiation, where the exponent is a fraction:

https://en.wikipedia.org/wiki/Nth_root#Definition_and_notation