我想看看Python计算平方根的方式,所以我试图找到它的定义math.sqrt(),但我无法在任何地方找到它.我看过的_math.c,mathmodule.c和其他地方.
math.sqrt()
_math.c
mathmodule.c
我知道python使用C的数学函数,但它们是在Python发行版中的某个地方,还是在其他地方链接到代码?我使用的是Mac OS X.
算法在math.sqrt()哪里?
python math sqrt
math ×1
python ×1
sqrt ×1