{"author_url":"https://blog.hatena.ne.jp/mzp/","published":"2007-04-26 00:00:00","version":"1.0","height":"190","categories":["30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0","Python"],"provider_name":"Hatena Blog","url":"https://mzp.hatenadiary.org/entry/20070426/newton","author_name":"mzp","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","title":"newton.py","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20070426%2Fnewton\" title=\"newton.py - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"30\u5206\u30b7\u30ea\u30fc\u30ba\u3002\u305d\u306e9\u3002\u30cd\u30bf\u304c\u306d\u3047\u3002 \u4eca\u56de\u306f\u30cb\u30e5\u30fc\u30c8\u30f3\u6cd5\u3002\u6570\u5024\u8a08\u7b97\u306e\u6559\u79d1\u66f8\u307e\u3067\u3082\u3072\u3063\u3071\u308a\u51fa\u3057\u305f\u3002\u3044\u3084\u306d\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u672c\u306f\u3059\u3079\u304b\u3089\u304f\u624b\u7d9a\u304d\u7684\u30fb\u53cd\u5fa9\u7684\u306b\u66f8\u3044\u3066\u3042\u308b\u306e\u3088\u3002\u305d\u308c\u3092\u3001\u518d\u5e30\u3067\u66f8\u304d\u76f4\u3057\u3066\u3044\u308b\u306830\u5206\u3067\u7d42\u308f\u3089\u306a\u3044\u306e\u3067\u3059\u3002\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u4eca\u56de\u306f\u30cb\u30e5\u30fc\u30c8\u30f3\u6cd5\u3067\u4e8c\u4e57\u6839\u3001\u4e09\u4e57\u6839\u300110\u4e57\u6839\u3092\u6c42\u3081\u3066\u307f\u305f\u3002 $ python newton.py sqrt(2) = 1.41421 cubic_root(2) = 1.25992 root(2,10) = 1.0717734625def newton(f,x,delta=0.1): new = x-f(x) if abs(new - x) < delta: r\u2026","provider_url":"https://hatena.blog","type":"rich","blog_url":"https://mzp.hatenadiary.org/","width":"100%","image_url":"https://cdn-ak.d.st-hatena.com/diary/mzp/2007-04-26.png"}