gamma function

link for downloading gamma function code

— HTML, 4Kb

File contents

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <title>Fortan code for the Gamma function</title>
  <meta name="Generator" content="Cocoa HTML Writer">
  <meta name="CocoaVersion" content="824.41">
  <style type="text/css">
    p.p1 {margin: 0.0px 0.0px 16.0px 0.0px; font: 24.0px Times; color: #001cc1}
    p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Times; color: #e71a11}
    p.p3 {margin: 0.0px 0.0px 12.0px 0.0px; font: 12.0px Times; color: #001cc1}
    p.p4 {margin: 0.0px 0.0px 14.0px 0.0px; font: 14.0px Times; color: #001cc1}
    p.p5 {margin: 0.0px 0.0px 14.0px 0.0px; font: 12.0px Times; color: #001cc1}
    p.p6 {margin: 0.0px 0.0px 12.0px 0.0px; font: 12.0px Times; color: #001cc1; min-height: 14.0px}
    p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Times; color: #001cc1; min-height: 14.0px}
    span.s1 {text-decoration: underline}
    span.s2 {font: 12.0px Lucida Grande}
    span.s3 {font: 14.0px Times}
    span.s4 {font: 12.0px Times}
    span.s5 {color: #001cc1}
    span.s6 {text-decoration: underline ; color: #e71a11}
  </style>
</head>
<body>
<h1 style="margin: 0.0px 0.0px 16.0px 0.0px; font: 24.0px Times; color: #001cc1"><b>FORTRAN code for the Gamma function</b></h1>
<p class="p2"><span class="s1"><a href="http://people.chem.byu.edu/rbshirts/research/gamma-function/lngam.for"><span class="Apple-converted-space"> </span>click here to download the FORTRAN code</a></span></p>
<p class="p3">89 lines, 2878 bytes</p>
<h3 style="margin: 0.0px 0.0px 14.0px 0.0px; font: 14.0px Times; color: #001cc1"><b>The excitation probability distribution for microcanonical energies</b></h3>
<p class="p3">The one-particle excitation probability distribution for states in a microcanonical ensemble (fixed number of particles, fixed energy, and fixed volume) is not given by the exponential Boltzmann distribution except in the limit of an infinite number of particles. The correct distribution, at least in many cases, is accurately approximated by a ratio of two Gamma functions. The FORTRAN code indicated here will evaluate the natural logarithm of the Gamma function and its first two derivatives. The accuracy is approximately 14 decimal places. The method used is Pade' approximants to the asymptotic series for large arguments and recursion downward.</p>
<p class="p3">These results are discussed in <i>J. Chem. Phys.</i> <b>117</b>, 5564-5575 (2002) with further application for the case of hard spheres in <i>J. Chem. Phys.</i> <b>125</b>, 164102 (2006).</p>
<p class="p3"><i>for questions or comments contact</i></p>
<p class="p3">Randall B. Shirts<span class="s2"><br>
</span>Department of Chemistry and Biochemistry<span class="s2"><br>
</span>Brigham Young University<span class="s2"><br>
</span>Provo, UT 84602</p>
<h3 style="margin: 0.0px 0.0px 14.0px 0.0px; font: 12.0px Times; color: #001cc1"><span class="s3"><b>E-Mail Address:<span class="Apple-converted-space">  </span></b></span>randy_shirts@byu.edu</h3>
<h3 style="margin: 0.0px 0.0px 14.0px 0.0px; font: 14.0px Times; color: #001cc1"><b>Office Telephone Number:<span class="Apple-converted-space">  </span></b><span class="s4">(801) 422-4290</span></h3>
<h3 style="margin: 0.0px 0.0px 14.0px 0.0px; font: 12.0px Times; color: #001cc1"><span class="s3"><b>FAX Number:<span class="Apple-converted-space">  </span></b></span>(801) 422-0153</h3>
<h3 style="margin: 0.0px 0.0px 14.0px 0.0px; font: 12.0px Times; color: #001cc1"><span class="s3"><b>Office Room Number:<span class="Apple-converted-space">  </span></b></span>C312 BNSN, BYU campus</h3>
<p class="p2"><span class="s5">return to <a href="http://www.chem.byu.edu/index.php"><span class="s6">Department of Chemistry and Biochemistry homepage</span></a></span></p>
<p class="p6"><br></p>
<p class="p3">return to <a href="http://people.chem.byu.edu/rbshirts/research">R. B. Shirts research website</a></p>
<p class="p7"><i></i><br></p>
</body>
</html>
Document Actions
 

© Copyright 2009.