开平方
Apr 25, 2017
也就是如何造开平方轮子咯?
翻翻 Wiki 先 -> Square Root
Methods of computing square roots
那么实现就是:
import math |
牛顿法的话是这样下面这样:
def isqrt(x): |
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.