{"provider_url":"https://hatena.blog","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/n4_t/","version":"1.0","blog_url":"https://naoyat.hatenablog.jp/","author_name":"n4_t","height":"190","blog_title":"naoya_t@hatenablog","title":"Python\u3067\u6570\u5024\u7a4d\u5206 \u301c\u30d5\u30fc\u30ea\u30a8\u7d1a\u6570\u5c55\u958b\u3092\u4f8b\u306b\u3001\u3066\u304bscipy.integrate.quad()\u304b\u308f\u3044\u3044\u3088scipy.integrate.quad()","description":"\u306f\u3044\u306f\u3044\u307e\u305f\u30b0\u30e9\u30d5\u63cf\u304d\u305f\u3044\u3060\u3051\u306e\u30a8\u30f3\u30c8\u30ea\u3067\u3059\u3088\u3002\u3066\u304b\u6570\u5024\u7a4d\u5206\u304c\u7c21\u5358\u306b\u51fa\u6765\u3061\u3083\u3046SciPy(\u30fb\u2200\u30fb)\uff72\uff72\uff88!! \u304c from scipy.integrate import quad y, abserr = quad(f, a, b)\u3067\u8a08\u7b97\u3067\u304d\u3061\u3083\u3046\u306e\u3067\u3059\u3002\uff08y \u304c\u7a4d\u5206\u5024\u3001abserr\u306f\u63a8\u5b9a\u8aa4\u5dee\u306e\u7d76\u5bfe\u5024\uff09 \u57fa\u790e\u7de8 \u2192 \u3092\u671f\u5f85\u3002 # -*- coding: utf-8 -*- from scipy.integrate import quad y, abserr = quad(lambda x:x*x*x, 0, 2) print \"\u222b_0^2 x^3 dx = %g \u00b1 %g\" % (y, abse\u2026","url":"https://naoyat.hatenablog.jp/entry/2012/03/03/221022","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaoyat.hatenablog.jp%2Fentry%2F2012%2F03%2F03%2F221022\" title=\"Python\u3067\u6570\u5024\u7a4d\u5206 \u301c\u30d5\u30fc\u30ea\u30a8\u7d1a\u6570\u5c55\u958b\u3092\u4f8b\u306b\u3001\u3066\u304bscipy.integrate.quad()\u304b\u308f\u3044\u3044\u3088scipy.integrate.quad() - naoya_t@hatenablog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Python","SciPy"],"published":"2012-03-03 22:10:22","image_url":"http://chart.apis.google.com/chart?cht=tx&chl=%5Cdisplaystyle%5Cint_a%5Ebf%28x%29%20dx","width":"100%","type":"rich"}