{"blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","image_url":null,"published":"2010-01-12 00:00:00","author_url":"https://blog.hatena.ne.jp/mzp/","author_name":"mzp","provider_url":"https://hatena.blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20100112%2Fpi\" title=\"\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u6cd5\u3067\u5186\u5468\u7387\u8a08\u7b97 - \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>","title":"\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u6cd5\u3067\u5186\u5468\u7387\u8a08\u7b97","url":"https://mzp.hatenadiary.org/entry/20100112/pi","categories":["Scala","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"provider_name":"Hatena Blog","type":"rich","description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e719\u3002\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u6cd5\u3067\u5186\u5468\u7387\u8a08\u7b97\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u6cd5\u306fhttp://www.geocities.jp/turtle_wide/softcomp/al/p03.htm\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002\u03c0 = (\u534a\u5f841\u306e\u6247\u5f62\u306e\u4e2d\u306b\u5165\u3063\u305f\u70b9\u306e\u6570) / (\u6253\u3063\u305f\u70b9\u306e\u6570\u306e\u7dcf\u6570) * 4\u3067\u51fa\u3057\u3066\u3044\u307e\u3059\u3002\u3068\u3053\u308d\u3067\u3001\u30b3\u30fc\u30c9\u4e2d\u306e\u300c\u534a\u5f841\u306e\u6247\u5f62\u306e\u4e2d\u306b\u5165\u3063\u305f\u70b9\u306e\u6570\u300d\u3092\u6c42\u3081\u308b\u30b3\u30fc\u30c9\u306f\u3053\u3046\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u6d41\u308c\u308b\u3088\u3046\u306a\u611f\u3058\u304c\u5b9f\u306b\u7f8e\u3057\u3044\u3002 val count = takeN(n,r) zip takeN(n,r) map(distance_2(_)) filter(_ < 1.0) length \u4f7f\u3044\u2026","blog_url":"https://mzp.hatenadiary.org/","version":"1.0","height":"190"}