如何将y = pow(x,z)反转为x?

Men*_*ito 1 python math logarithm square-root pow

据我所知,没有内置函数可以直接执行此操作,所以log()?或简单的数学快捷方式,如:

z = y ** (1/x)
Run Code Online (Sandbox Code Playgroud)

X?

Joh*_*man 6

如果y=pow(x,z)那样x = pow(y,1.0/z):

>>> y = pow(3,1.7)
>>> y
6.473007839923779
>>> pow(y,1.0/1.7)
3.0
Run Code Online (Sandbox Code Playgroud)