<?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>Fortran</anon>
  </categories>
  <description>統計力学などでは、よく階乗の対数を Stirling の公式で近似しますが、どのくらいの精度で近似になっているのか見てみます。ここで Stirling の公式とは、n が大きいところで、 というものです。n のオーダーに比例する項だけが問題になる時は、ここまでで十分となります。計算では、高次の項を [1/n^7] のオーダーまでとった場合の差分も求めています。大体倍精度の場合は、この程度までとれば十分のはずです。 MODULE m_fact IMPLICIT NONE INTEGER, PARAMETER :: kd = SELECTED_REAL_KIND(8) CONTAINS REAL(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffortran66.hatenablog.com%2Fentry%2F20080302%2F1204387713&quot; title=&quot; - 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/20080302/20080302010453.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-03-02 01:08:33</published>
  <title></title>
  <type>rich</type>
  <url>https://fortran66.hatenablog.com/entry/20080302/1204387713</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
