Where can I inspect Python's math functions?

后端 未结 4 2273
旧巷少年郎
旧巷少年郎 2020-12-06 16:16

I would like to look at the way Python does computes square roots, so I tried to find the definition for math.sqrt(), but I can\'t find it anywhere. I have look

4条回答
  •  情歌与酒
    2020-12-06 17:12

    A simple grep over the code would have helped:

    http://svn.python.org/view/python/trunk/Modules/cmathmodule.c?revision=76978&view=markup

提交回复
热议问题