<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TobiasGSmollett</author_name>
  <author_url>https://blog.hatena.ne.jp/TobiasGSmollett/</author_url>
  <blog_title>tobiasの日記</blog_title>
  <blog_url>https://tobiasgsmollett.hatenadiary.org/</blog_url>
  <categories>
    <anon>乱択アルゴリズム</anon>
    <anon>幾何</anon>
    <anon>アルゴリズム</anon>
  </categories>
  <description>モンテカルロ法で図形の面積を求めることができる。x*x/4+y*y=1 の式で示される楕円の面積をモンテカルロ法で求める。乱数 0≦x≦2 , 0≦y≦1 を2×1の長方形の中に均一に落とす。 1/4の楕円の中に入った乱数の数をr 落とした乱数の総数をn 1/4の楕円の面積をSとすると 2 : S / 4 = n : r S = 4 * 2 * r / n となる。 #include&lt;iostream&gt; #include&lt;vector&gt; #include&lt;algorithm&gt; #include&lt;cstdio&gt; #include&lt;climits&gt; #include&lt;cmath&gt; using na…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftobiasgsmollett.hatenadiary.org%2Fentry%2F20130610%2F1370837185&quot; title=&quot;モンテカルロ法で楕円の面積を求める。 - tobiasの日記&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>2013-06-10 13:06:25</published>
  <title>モンテカルロ法で楕円の面積を求める。</title>
  <type>rich</type>
  <url>https://tobiasgsmollett.hatenadiary.org/entry/20130610/1370837185</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
