<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Room-B</author_name>
  <author_url>https://blog.hatena.ne.jp/Room-B/</author_url>
  <blog_title>minofoto and miscellaneous notes</blog_title>
  <blog_url>https://minofoto.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>Ruby で遊んでいたら、高校生時代に友達と円周率を計算して遊んでいたことを思い出した。当時はまだコンピュータを持っておらず、関数電卓で円に内接する多角形の面積を計算したり、解析概論から Machin の式を見つけ出して計算したりしていた。友達が PC-9801 を持っていたが、どうやって倍精度計算をするか、その限界を越えるにはどうしたらいいか、といった話をグダグタとしていた。Machin の式はこんな感じ。この式が良いのは、冪乗があるものの、加減乗除だけで構成されていて単純なことだ。 ruby で書くと以下のようになる。 ruby は整数の計算は桁数の制限がないことと、この式はひたすら項を加…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminofoto.hatenadiary.jp%2Fentry%2F2022%2F09%2F23%2F124332&quot; title=&quot;円周率の計算（Machin の式） - minofoto and miscellaneous notes&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>2022-09-23 12:43:32</published>
  <title>円周率の計算（Machin の式）</title>
  <type>rich</type>
  <url>https://minofoto.hatenadiary.jp/entry/2022/09/23/124332</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
