Amparo Gil , Andrzej Odrzywołek , Javier Segura , Nico M. Temme
{"title":"Evaluation of the generalized Fermi-Dirac integral and its derivatives for moderate/large values of the parameters. New version announcement","authors":"Amparo Gil , Andrzej Odrzywołek , Javier Segura , Nico M. Temme","doi":"10.1016/j.cpc.2025.109605","DOIUrl":null,"url":null,"abstract":"<div><div>A revised version of the Matlab implementations of the expansions for the Fermi-Dirac integral and its derivatives is presented. In the new version, our functions for computing the Kummer functions <span><math><mi>M</mi><mo>(</mo><mi>a</mi><mo>,</mo><mi>b</mi><mo>,</mo><mi>x</mi><mo>)</mo></math></span> and <span><math><mi>U</mi><mo>(</mo><mi>a</mi><mo>,</mo><mi>b</mi><mo>,</mo><mi>x</mi><mo>)</mo></math></span> are incorporated into the software. The algorithms for computing the Kummer functions are described in [1,2]. In this way, the implementations of the expansions for the Fermi-Dirac integral can be used in earlier Matlab versions and can be easily adapted to GNU Octave. The efficiency of the computations is also greatly improved.</div></div><div><h3>New version program summary</h3><div><em>Program Title:</em> FermiDiracExpans</div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/sk34wtcxhh.2</span><svg><path></path></svg></span></div><div><em>Licensing provisions:</em> GPLv3</div><div><em>Programming language:</em> Matlab</div><div><em>Journal reference of previous version:</em> Comput. Phys. Commun. 283 (2023) 108563</div><div><em>Does the new version supersede the previous version?:</em> Yes</div><div><em>Reasons for the new version:</em> With the new version, the implementations of the expansions for the Fermi-Dirac integral can be used in earlier Matlab versions and can be easily adapted to GNU Octave. The efficiency of the computations is also greatly improved.</div><div><em>Summary of revisions:</em> The built-in Matlab functions <span>kummerU</span> and <span>hypergeom</span> are replaced by our functions <span>Uabx</span> and <span>Mabx</span>, respectively. These functions improve both the accuracy and efficiency of the built-in Matlab functions for computing the Kummer functions. A few relations satisfied by the Kummer functions are used to adapt the expressions in the expansions involving Kummer functions with negative parameters into expressions with real positive parameters and arguments, as used in our algorithms for Kummer functions.</div><div><em>Nature of problem:</em> The evaluation of the relativistic Fermi-Dirac function and its partial derivatives is needed in different problems in applied and theoretical physics, such as stellar astrophysics, plasma physics or electronics.</div><div><em>Solution method:</em> Convergent and asymptotic expansions are provided to approximate the relativistic Fermi-Dirac function and its derivatives for moderate/large values of its parameters.</div></div><div><h3>References</h3><div><ul><li><span>[1]</span><span><div>A. Gil, D. Ruiz-Antolin, J. Segura, N.M. Temme, Numer. Algorithms 94 (2023) 669–679.</div></span></li><li><span>[2]</span><span><div>A. Gil, D. Ruiz-Antolin, J. Segura, N.M. Temme, Lecture Notes in Computer Science, vol. 14477, Springer, Cham, 2025.</div></span></li></ul></div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"312 ","pages":"Article 109605"},"PeriodicalIF":7.2000,"publicationDate":"2025-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Physics Communications","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010465525001080","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0
Abstract
A revised version of the Matlab implementations of the expansions for the Fermi-Dirac integral and its derivatives is presented. In the new version, our functions for computing the Kummer functions and are incorporated into the software. The algorithms for computing the Kummer functions are described in [1,2]. In this way, the implementations of the expansions for the Fermi-Dirac integral can be used in earlier Matlab versions and can be easily adapted to GNU Octave. The efficiency of the computations is also greatly improved.
New version program summary
Program Title: FermiDiracExpans
CPC Library link to program files:https://doi.org/10.17632/sk34wtcxhh.2
Does the new version supersede the previous version?: Yes
Reasons for the new version: With the new version, the implementations of the expansions for the Fermi-Dirac integral can be used in earlier Matlab versions and can be easily adapted to GNU Octave. The efficiency of the computations is also greatly improved.
Summary of revisions: The built-in Matlab functions kummerU and hypergeom are replaced by our functions Uabx and Mabx, respectively. These functions improve both the accuracy and efficiency of the built-in Matlab functions for computing the Kummer functions. A few relations satisfied by the Kummer functions are used to adapt the expressions in the expansions involving Kummer functions with negative parameters into expressions with real positive parameters and arguments, as used in our algorithms for Kummer functions.
Nature of problem: The evaluation of the relativistic Fermi-Dirac function and its partial derivatives is needed in different problems in applied and theoretical physics, such as stellar astrophysics, plasma physics or electronics.
Solution method: Convergent and asymptotic expansions are provided to approximate the relativistic Fermi-Dirac function and its derivatives for moderate/large values of its parameters.
References
[1]
A. Gil, D. Ruiz-Antolin, J. Segura, N.M. Temme, Numer. Algorithms 94 (2023) 669–679.
[2]
A. Gil, D. Ruiz-Antolin, J. Segura, N.M. Temme, Lecture Notes in Computer Science, vol. 14477, Springer, Cham, 2025.
期刊介绍:
The focus of CPC is on contemporary computational methods and techniques and their implementation, the effectiveness of which will normally be evidenced by the author(s) within the context of a substantive problem in physics. Within this setting CPC publishes two types of paper.
Computer Programs in Physics (CPiP)
These papers describe significant computer programs to be archived in the CPC Program Library which is held in the Mendeley Data repository. The submitted software must be covered by an approved open source licence. Papers and associated computer programs that address a problem of contemporary interest in physics that cannot be solved by current software are particularly encouraged.
Computational Physics Papers (CP)
These are research papers in, but are not limited to, the following themes across computational physics and related disciplines.
mathematical and numerical methods and algorithms;
computational models including those associated with the design, control and analysis of experiments; and
algebraic computation.
Each will normally include software implementation and performance details. The software implementation should, ideally, be available via GitHub, Zenodo or an institutional repository.In addition, research papers on the impact of advanced computer architecture and special purpose computers on computing in the physical sciences and software topics related to, and of importance in, the physical sciences may be considered.