<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryamada</author_name>
  <author_url>https://blog.hatena.ne.jp/ryamada/</author_url>
  <blog_title>ryamadaのコンピュータ・数学メモ</blog_title>
  <blog_url>https://ryamada.hatenadiary.jp/</blog_url>
  <categories>
    <anon>円周率</anon>
  </categories>
  <description>ビュフォンの針を使った円周率の計算機推定の話題(こちら)がある。 簡単に言うと、等長の針を、針の長さより長い幅の縞模様の上に投げて、針が１つの縞に納まるか、２つの縞に跨るかの割合から円周率が推定できるという話です。 （１）針の頭の位置を一様乱数で発生し、針の向き(角度)を0-2πの一様乱数で発生させれば、針の位置は決まりますから、シミュレーションは成功です。ですが、針の向きの一様乱数発生に円周率を使っているので、これは「ずる」です。 # 針の長さをLとする # n本の針 # 針の頭が[0,1] x [0,1]の正方形に一様に分布するように発生する # 針の方向は[0,2pi) に一様に分布する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada.hatenadiary.jp%2Fentry%2F20150510%2F1431216974&quot; title=&quot;円周率を推定するのに円周率を使いたくない - ryamadaのコンピュータ・数学メモ&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>2015-05-10 09:16:14</published>
  <title>円周率を推定するのに円周率を使いたくない</title>
  <type>rich</type>
  <url>https://ryamada.hatenadiary.jp/entry/20150510/1431216974</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
