<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakaBox</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakaBox/</author_url>
  <blog_title>ボクノス</blog_title>
  <blog_url>https://boxnos.hatenablog.com/</blog_url>
  <categories>
    <anon>Scheme</anon>
  </categories>
  <description>かなりゆっくり進んでおります。前回、M系列乱数を作ったので、モンテカルロ法を試しながら性能実験です。SICPのモンテカルロ法がよくわからないので、とりあえず単純な奴を。 単純なモンテカルロ法を使って、円周率を量る 三平方の定理から、単位円上の円はx^2 + y^2 = 1となる。つまりx^2 + y^2 ならば、実数x,yは円の中にあるよね。 そこで、|x| 円の中に打たれた点 : 正方形の中に打たれた点 = 円の面積 : 正方形の面積となり、面積の比が出る。 円の面積は πr^2で、単位円の半径はr = 1なので、単位円の面積=円周率。正方形の面積は4。つまり、π/4 = 円の中に打たれた点…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20080424%2F1209032542&quot; title=&quot; SICPを読む(92) 3.1.2 (2) - モンテカルロ法(1) - ボクノス&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>2008-04-24 19:22:22</published>
  <title> SICPを読む(92) 3.1.2 (2) - モンテカルロ法(1)</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20080424/1209032542</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
