<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fortran66</author_name>
  <author_url>https://blog.hatena.ne.jp/fortran66/</author_url>
  <blog_title>fortran66のブログ</blog_title>
  <blog_url>https://fortran66.hatenablog.com/</blog_url>
  <categories>
    <anon>Fortran2003</anon>
  </categories>
  <description>半径１の１／４円中に入るか入らないかで円周率を求める古典的な例です。一千万回の試行をしているけれども、組み込み乱数がちゃんとしているかは不明ｗ 試行回数Nに対して、おおむね 1/sqrt(N) に比例して誤差が減るはずなので目安の数字も出力しています。 ソース・プログラム program MonteCarlo implicit none real, parameter :: pi = 4.0 * atan(1.0) integer, parameter :: nn = 10**7 real :: x(nn), y(nn), pp call random_seed() call random_n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffortran66.hatenablog.com%2Fentry%2F20111122%2F1322023222&quot; title=&quot;Monte Carlo で円周率 - fortran66のブログ&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>http://cdn-ak.f.st-hatena.com/images/fotolife/f/fortran66/20111123/20111123133543.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-11-22 13:40:22</published>
  <title>Monte Carlo で円周率</title>
  <type>rich</type>
  <url>https://fortran66.hatenablog.com/entry/20111122/1322023222</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
