<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>qnighy</author_name>
  <author_url>https://blog.hatena.ne.jp/qnighy/</author_url>
  <blog_title>簡潔なQ</blog_title>
  <blog_url>https://qnighy.hatenablog.com/</blog_url>
  <categories>
    <anon>Programming</anon>
    <anon>Ruby</anon>
  </categories>
  <description>有理数の平方根や、その合計値を式を保持して扱います。(複素数の範囲はサポートしません)Wikipediaのフィボナッチ数#一般項にあるような式を扱ったりできます。コード:RtNumber: handles sum of rational numbers' sqrt — Gistコードに付属してるサンプル: a = Math.ratsqrt(3)+Math.ratsqrt(2) puts &quot;1/(#{a}) = #{1/a}&quot; # =&gt; 1/(rt(2)+rt(3)) = -rt(2)+rt(3) phi = (1+Math.ratsqrt(5))/2 phi2 = (1-Math.ratsqr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqnighy.hatenablog.com%2Fentry%2F20091009%2F1255081220&quot; title=&quot;有理数の平方根を扱うRubyクラスを作った - 簡潔なQ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-10-09 18:40:20</published>
  <title>有理数の平方根を扱うRubyクラスを作った</title>
  <type>rich</type>
  <url>https://qnighy.hatenablog.com/entry/20091009/1255081220</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
