{"provider_name":"Hatena Blog","image_url":null,"version":"1.0","categories":["Python"],"type":"rich","width":"100%","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/CortYuming/","description":"\u7a4d\u8aad\u72b6\u614b\u306e\u300e\u6570\u5b66\u30ac\u30fc\u30eb\u300f\u3092\u3044\u307e\u3055\u3089\u8aad\u307f\u59cb\u3081\u305f\u306e\u3067\u306a\u3093\u3068\u306a\u304f\u3002 \u89e3\u7b544-1\uff08\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u306e\u4e00\u822c\u9805\uff09 from math import sqrt def fib(n): return int(1 / sqrt(5) * (((1 + sqrt(5)) / 2) ** n - ((1 - sqrt(5)) / 2) ** n)) print [fib(i) for i in range(10)] #-> [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] \u3061\u306a\u307f\u306bsicp\u3067\u3084\u3063\u305f\u6642\u306e\u3082\u306e Structure and Interpretation of Computer Progr\u2026","blog_url":"https://cortyuming.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcortyuming.hateblo.jp%2Fentry%2F20100131%2Fp1\" title=\"\u300e\u6570\u5b66\u30ac\u30fc\u30eb\u300f4-2-5\u306e\u89e3\u7b544-1\uff08\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u306e\u4e00\u822c\u9805\uff09\u3092Python\u3067 - \u724c\u8a9e\u5099\u5fd8\u9332 -pygo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"CortYuming","title":"\u300e\u6570\u5b66\u30ac\u30fc\u30eb\u300f4-2-5\u306e\u89e3\u7b544-1\uff08\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u306e\u4e00\u822c\u9805\uff09\u3092Python\u3067","published":"2010-01-31 00:00:00","url":"https://cortyuming.hateblo.jp/entry/20100131/p1","blog_title":"\u724c\u8a9e\u5099\u5fd8\u9332 -pygo","height":"190"}