{"published":"2012-06-18 14:15:43","blog_title":"Pixel Pedals of Tomakomai","description":"\u6982\u8aac\u5fae\u5206\u7a4d\u5206\u306e\u554f\u984c4.19\u306e\u89e3\u7b54\u3002\u53f0\u5f62\u516c\u5f0f\u306f\u5b9a\u7a4d\u5206\u3092\u53f0\u5f62\u3067\u8fd1\u4f3c\u3059\u308b\u3082\u306e\u3002\u53f0\u5f62\u306e\u516c\u5f0f\u3092\u4f7f\u3063\u3066\u9762\u7a4d\u3092\u51fa\u3057\u3066\u6574\u7406\u3059\u308c\u3070\u3059\u3050\u51fa\u3066\u304f\u308b\u3002 def trapezoidal(f, range_, n): a, b = range_ result = f(a) + f(b) for i in xrange(1, n): result += f(a + (b - a) * i / n) * 2 return result * (b - a) / 2 / n \u30b7\u30f3\u30d7\u30bd\u30f3\u306e\u516c\u5f0f\u306f\u5b9a\u7a4d\u5206\u3092\u653e\u7269\u7dda\u3067\u8fd1\u4f3c\u3059\u308b\u3082\u306e\u3002\u3053\u308c\u3082\u611a\u76f4\u306b\u8a08\u7b97\u3057\u3066\u6574\u7406\u3059\u308c\u3070\u51fa\u3066\u304f\u308b\u3002 def simpsons(f, range_, n): a, b \u2026","version":"1.0","url":"https://hiratara.hatenadiary.jp/entry/20120618/1339996543","provider_url":"https://hatena.blog","author_name":"hiratara","type":"rich","author_url":"https://blog.hatena.ne.jp/hiratara/","title":"\u554f\u984c4.19\u306e\u89e3\u7b54(\u53f0\u5f62\u516c\u5f0f\u3001\u30b7\u30f3\u30d7\u30bd\u30f3\u306e\u516c\u5f0f)","provider_name":"Hatena Blog","blog_url":"https://hiratara.hatenadiary.jp/","width":"100%","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiratara.hatenadiary.jp%2Fentry%2F20120618%2F1339996543\" title=\"\u554f\u984c4.19\u306e\u89e3\u7b54(\u53f0\u5f62\u516c\u5f0f\u3001\u30b7\u30f3\u30d7\u30bd\u30f3\u306e\u516c\u5f0f) - Pixel Pedals of Tomakomai\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","categories":["\u6570\u5b66","\u6280\u8853"]}