math.sqrt(x)より、x ** .5 のほうが早いという件

bellbindbellbind のブックマーク 2009/05/29 13:45

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Which is faster in Python: x**.5 or math.sqrt(x)?

    I've been wondering this for some time. As the title say, which is faster, the actual function or simply raising to the half power? UPDATE This is not a matter of premature optimization. This is si...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう