<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="3.0" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher">GMD</journal-id>
<journal-title-group>
<journal-title>Geoscientific Model Development</journal-title>
<abbrev-journal-title abbrev-type="publisher">GMD</abbrev-journal-title>
<abbrev-journal-title abbrev-type="nlm-ta">Geosci. Model Dev.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">1991-9603</issn>
<publisher><publisher-name>Copernicus Publications</publisher-name>
<publisher-loc>Göttingen, Germany</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.5194/gmd-3-329-2010</article-id>
<title-group>
<article-title>Efficient approximation of the incomplete gamma function for use in cloud model applications</article-title>
</title-group>
<contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Blahak</surname>
<given-names>U.</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
</contrib-group><aff id="aff1">
<label>1</label>
<addr-line>Institute for Meteorology and Climate Research, Karlsruhe Institute of Technololgy (KIT), Karlsruhe, Germany</addr-line>
</aff>
<aff id="aff2">
<label>2</label>
<addr-line>present address: German Weather Service (DWD), Offenbach, Germany</addr-line>
</aff>
<pub-date pub-type="epub">
<day>23</day>
<month>07</month>
<year>2010</year>
</pub-date>
<volume>3</volume>
<issue>2</issue>
<fpage>329</fpage>
<lpage>336</lpage>
<permissions>
<copyright-statement>Copyright: &#x000a9; 2010 U. Blahak</copyright-statement>
<copyright-year>2010</copyright-year>
<license license-type="open-access">
<license-p>This work is licensed under the Creative Commons Attribution 3.0 Unported License. To view a copy of this licence, visit <ext-link ext-link-type="uri"  xlink:href="https://creativecommons.org/licenses/by/3.0/">https://creativecommons.org/licenses/by/3.0/</ext-link></license-p>
</license>
</permissions>
<self-uri xlink:href="https://gmd.copernicus.org/articles/3/329/2010/gmd-3-329-2010.html">This article is available from https://gmd.copernicus.org/articles/3/329/2010/gmd-3-329-2010.html</self-uri>
<self-uri xlink:href="https://gmd.copernicus.org/articles/3/329/2010/gmd-3-329-2010.pdf">The full text article is available as a PDF file from https://gmd.copernicus.org/articles/3/329/2010/gmd-3-329-2010.pdf</self-uri>
<abstract>
<p>This paper describes an approximation to the lower incomplete gamma function
&amp;gamma;&lt;i&gt;&lt;sub&gt;l&lt;/sub&gt;(a,x)&lt;/i&gt; which has been obtained by nonlinear curve fitting. It
comprises a fixed number of terms and yields moderate accuracy (the absolute
approximation error of the corresponding normalized incomplete gamma function
&lt;i&gt;P&lt;/i&gt; is smaller than 0.02 in the range  0.9 &amp;le; &lt;i&gt;a&lt;/i&gt; &amp;le; 45 and &lt;i&gt;x&lt;/i&gt;&amp;ge;0).
Monotonicity and asymptotic behaviour of the original incomplete gamma
function is preserved.
&lt;br&gt;&lt;br&gt;
While providing a slight to moderate performance gain on scalar machines
(depending on whether &lt;i&gt;a&lt;/i&gt; stays the same for subsequent function evaluations
or not) compared to established and more accurate methods based on series- or
continued fraction expansions with a variable number of terms, a big
advantage over these more accurate methods is the applicability on vector
CPUs. Here the fixed number of terms enables proper and efficient
vectorization. The fixed number of terms might be also beneficial on
massively parallel machines to avoid load imbalances, caused by a possibly
vastly different number of terms in series expansions to reach convergence at
different grid points. For many cloud microphysical applications, the
provided moderate accuracy should be enough. However, on scalar machines and
if &lt;i&gt;a&lt;/i&gt; is the same for subsequent function evaluations, the most efficient
method to evaluate incomplete gamma functions is perhaps interpolation of
pre-computed regular lookup tables (most simple example: equidistant tables).</p>
</abstract>
<counts><page-count count="8"/></counts>
</article-meta>
</front>
<body/>
<back>
<ref-list>
<title>References</title>
<ref id="ref1">
<label>1</label><mixed-citation publication-type="other" xlink:type="simple">Abramowitz, M. and Stegun, I.&amp;nbsp;A.: Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, Dover Publications, 1970.</mixed-citation>
</ref>
<ref id="ref2">
<label>2</label><mixed-citation publication-type="other" xlink:type="simple">Chandrasekar, V. and Bringi, V.&amp;nbsp;N.: Simulation of Radar Reflectivity and Surface Measurements of Rainfall, J.&amp;nbsp;Atmos. Ocean. Tech., 4, 464–478, 1987.</mixed-citation>
</ref>
<ref id="ref3">
<label>3</label><mixed-citation publication-type="other" xlink:type="simple">Cotton, W.&amp;nbsp;R., Tripoli, G.&amp;nbsp;J., Rauber, R.&amp;nbsp;M., and Mulvihill, E.&amp;nbsp;A.: Numerical Simulation of the Effects of Varying Ice Crystal Nucleation Rates and Aggregation Processes on Orographic Snowfall, J.&amp;nbsp;Appl. Meteorol., 25, 1658–1680, 1986.</mixed-citation>
</ref>
<ref id="ref4">
<label>4</label><mixed-citation publication-type="other" xlink:type="simple">Deirmendjian, D.: Far-Infrared and Submillimeter Wave Attenuation by Clouds and Rain, J.&amp;nbsp;Appl. Meteorol., 14, 1584–1593, 1975.</mixed-citation>
</ref>
<ref id="ref5">
<label>5</label><mixed-citation publication-type="other" xlink:type="simple">Farley, R.&amp;nbsp;D., Price, P.&amp;nbsp;E., Orville, H.&amp;nbsp;D., and Hirsch, J.&amp;nbsp;H.: On the Numerical Simulation of Graupel/Hail Initiation via the Riming of Snow in Bulk Water Microphysical Cloud Models, J.&amp;nbsp;Appl. Meteorol., 28, 1128–1131, 1989.</mixed-citation>
</ref>
<ref id="ref6">
<label>6</label><mixed-citation publication-type="other" xlink:type="simple">Harringon, J.&amp;nbsp;Y., Meyers, M.&amp;nbsp;P., Walko, R.&amp;nbsp;L., and Cotton, W.&amp;nbsp;R.: Parameterization of ice Crystal Conversion Processes Due to Vapor Deposition for Mesoscale Models Using Double-Moment Basis Functions. Part&amp;nbsp;1: Basic Formulation and Parcel Model Results, J.&amp;nbsp;Atmos. Sci., 52, 4344–4366, 1995.</mixed-citation>
</ref>
<ref id="ref7">
<label>7</label><mixed-citation publication-type="other" xlink:type="simple">Illingworth, A.&amp;nbsp;J. and Blackman, T.&amp;nbsp;M.: The Need to Represent Raindrop Size Spectra as Normalized Gamma Distributions for the Interpretation of Polarization Radar Observations, J.&amp;nbsp;Appl. Meteorol., 41, 286–297, 2002.</mixed-citation>
</ref>
<ref id="ref8">
<label>8</label><mixed-citation publication-type="other" xlink:type="simple">Lanczos, C.: A Precision Approximation of the Gamma Function, J.&amp;nbsp;SIAM&amp;nbsp;Numer.&amp;nbsp;Anal. Ser.&amp;nbsp;B, 1, 86–96, 1964.</mixed-citation>
</ref>
<ref id="ref9">
<label>9</label><mixed-citation publication-type="other" xlink:type="simple">Lin, Y.-L., Farley, R., and Orville, H.: Bulk Parameterization of the Snow Field in a Cloud Model, J.&amp;nbsp;Clim. Appl. Meteorol., 22, 1065–1092, 1983.</mixed-citation>
</ref>
<ref id="ref10">
<label>10</label><mixed-citation publication-type="other" xlink:type="simple">Locatelli, J.&amp;nbsp;D. and Hobbs, P.&amp;nbsp;V.: Fall Speeds and Masses of Solid Precipitation particles, J.&amp;nbsp;Geophys.&amp;nbsp;Res., 79, 2185–2197, 1974.</mixed-citation>
</ref>
<ref id="ref11">
<label>11</label><mixed-citation publication-type="other" xlink:type="simple">Milbrandt, J.&amp;nbsp;A. and Yau, M.&amp;nbsp;K.: A Multimoment Bulk Microphysics Parameterization. {P}art&amp;nbsp;{I}: Analysis of the Role of the Spectral Shape Parameter, J.&amp;nbsp;Atmos. Sci., 62, 3051–3064, 2005a.</mixed-citation>
</ref>
<ref id="ref12">
<label>12</label><mixed-citation publication-type="other" xlink:type="simple">Milbrandt, J.&amp;nbsp;A. and Yau, M.&amp;nbsp;K.: A Multimoment Bulk Microphysics Parameterization. {P}art&amp;nbsp;{II}: A Proposed Three-Moment Closure and Scheme Description, J.&amp;nbsp;Atmos. Sci., 62, 3065–3081, 2005b.</mixed-citation>
</ref>
<ref id="ref13">
<label>13</label><mixed-citation publication-type="other" xlink:type="simple">Press, W.&amp;nbsp;H., Teukolsky, S.&amp;nbsp;A., Vetterling, W.&amp;nbsp;T., and Flannery, B.&amp;nbsp;P.: Numerical Recipes in Fortran 77, Cambridge University Press, 1993.</mixed-citation>
</ref>
<ref id="ref14">
<label>14</label><mixed-citation publication-type="other" xlink:type="simple">Pruppacher, H.&amp;nbsp;R. and Klett, J.&amp;nbsp;D.: Microphysics of Clouds and Precipitation, 2nd edn., Kluwer Academic Publishers, Dordrecht, Boston, London, 1997.</mixed-citation>
</ref>
<ref id="ref15">
<label>15</label><mixed-citation publication-type="other" xlink:type="simple">Seifert, A. and Beheng, K.&amp;nbsp;D.: A Two-Moment Cloud Microphysics Parameterization for Mixed-Phase Clouds. {P}art {I}: Model Description, Meteorol. Atmos. Phys., 92, 45–66, 2006.</mixed-citation>
</ref>
<ref id="ref16">
<label>16</label><mixed-citation publication-type="other" xlink:type="simple">Seifert, A.: On the Parameterization of Evaporation of Raindrops as Simulated by a One-Dimensional Rainshaft Model, J.&amp;nbsp;Atmos. Sci., 65, 3608–3619, 2008.</mixed-citation>
</ref>
<ref id="ref17">
<label>17</label><mixed-citation publication-type="other" xlink:type="simple">Testud, J., Oury, S., Black, R.&amp;nbsp;A., Amayenc, P., and Dou, X.: The Concept of &quot;Normalized&quot; Distribution to Describe Raindrop Spectra: A Tool for Cloud Physics and Cloud Remote Sensing, J.&amp;nbsp;Appl. Meteorol., 40, 1118–1140, 2001.</mixed-citation>
</ref>
<ref id="ref18">
<label>18</label><mixed-citation publication-type="other" xlink:type="simple">Walko, R.&amp;nbsp;L., Cotton, W.&amp;nbsp;R., Meyers, M.&amp;nbsp;P., and Harrington, J.&amp;nbsp;Y.: New RAMS Cloud Microphysical Parameterization. {P}art {I}: The Single-Moment Scheme, Atmos. Res., 38, 29–62, 1995.</mixed-citation>
</ref>
<ref id="ref19">
<label>19</label><mixed-citation publication-type="other" xlink:type="simple">Willis, P.&amp;nbsp;T.: Functional Fits to Some Observed Drop Size Distributions and Parameterization of Rain, J.&amp;nbsp;Atmos. Sci., 41, 1648–1661, 1984.</mixed-citation>
</ref>
<ref id="ref20">
<label>20</label><mixed-citation publication-type="other" xlink:type="simple">Young, K.&amp;nbsp;C.: Microphysical Processes in Clouds, Oxford University Press, 1993.</mixed-citation>
</ref>
<ref id="ref21">
<label>21</label><mixed-citation publication-type="other" xlink:type="simple">Ziegler, C.&amp;nbsp;L.: Retrieval of Thermal and Microphysical Variables in Observed Convective Storms. {P}art&amp;nbsp;1: Model Development and Preliminary Testing, J.&amp;nbsp;Atmos. Sci., 42, 1487–1509, 1985.</mixed-citation>
</ref>
</ref-list>
</back>
</article>