{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqnighy.hatenablog.com%2Fentry%2F20091009%2F1255081220\" title=\"\u6709\u7406\u6570\u306e\u5e73\u65b9\u6839\u3092\u6271\u3046Ruby\u30af\u30e9\u30b9\u3092\u4f5c\u3063\u305f - \u7c21\u6f54\u306aQ\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u6709\u7406\u6570\u306e\u5e73\u65b9\u6839\u3084\u3001\u305d\u306e\u5408\u8a08\u5024\u3092\u5f0f\u3092\u4fdd\u6301\u3057\u3066\u6271\u3044\u307e\u3059\u3002(\u8907\u7d20\u6570\u306e\u7bc4\u56f2\u306f\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u305b\u3093)Wikipedia\u306e\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570#\u4e00\u822c\u9805\u306b\u3042\u308b\u3088\u3046\u306a\u5f0f\u3092\u6271\u3063\u305f\u308a\u3067\u304d\u307e\u3059\u3002\u30b3\u30fc\u30c9:RtNumber: handles sum of rational numbers' sqrt \u2014 Gist\u30b3\u30fc\u30c9\u306b\u4ed8\u5c5e\u3057\u3066\u308b\u30b5\u30f3\u30d7\u30eb: a = Math.ratsqrt(3)+Math.ratsqrt(2) puts \"1/(#{a}) = #{1/a}\" # => 1/(rt(2)+rt(3)) = -rt(2)+rt(3) phi = (1+Math.ratsqrt(5))/2 phi2 = (1-Math.ratsqr\u2026","published":"2009-10-09 18:40:20","version":"1.0","categories":["Programming","Ruby"],"blog_title":"\u7c21\u6f54\u306aQ","type":"rich","width":"100%","author_url":"https://blog.hatena.ne.jp/qnighy/","author_name":"qnighy","provider_name":"Hatena Blog","title":"\u6709\u7406\u6570\u306e\u5e73\u65b9\u6839\u3092\u6271\u3046Ruby\u30af\u30e9\u30b9\u3092\u4f5c\u3063\u305f","image_url":null,"height":"190","blog_url":"https://qnighy.hatenablog.com/","provider_url":"https://hatena.blog","url":"https://qnighy.hatenablog.com/entry/20091009/1255081220"}