<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>MikuHatsune</author_name>
  <author_url>https://blog.hatena.ne.jp/MikuHatsune/</author_url>
  <blog_title>驚異のアニヲタ社会復帰の予備</blog_title>
  <blog_url>https://mikuhatsune.hatenadiary.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>R</anon>
  </categories>
  <description>Pythonで何か書いてみる練習。 でモンテカルロして円周率を求める。 import random # 擬似乱数発生 import math # 数学関数 trials=1000000 # やれるだけ res=range(0,trials) for i in res: x=random.random() y=random.random() z=math.pow(x,2) + math.pow(y,2) if math.sqrt(z) &lt;= 1: res[i]=1 else: res[i]=0 Decimal(4*sum(res))/Decimal(trials) # 浮動小数点はどうやったら楽…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmikuhatsune.hatenadiary.com%2Fentry%2F20110829%2F1314593448&quot; title=&quot;Pythonでモンテカルロ - 驚異のアニヲタ社会復帰の予備&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>2011-08-29 13:50:48</published>
  <title>Pythonでモンテカルロ</title>
  <type>rich</type>
  <url>https://mikuhatsune.hatenadiary.com/entry/20110829/1314593448</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
