A script written in C++ to compute the various Fermi-Dirac quantities for a given species.
While writing these scripts, I try to use my own functions as much as I can, all the way to basic numerical integration. I resort to using the MATLAB engine for symbolic integration. I operate almost solely in the complex domain to ensure compliance with the initial definitions of the functions.
The polylogarithm is defined by a power series in a complex parameter
The polylogarithm is defined for all complex orders
The derivative of the polylogarithm is simple, and is given by
The gamma function is a continuation of the factorial function to complex numbers. For any complex number
The digamma function appears multiple times in the relativistic expansion of Fermi-Dirac integrals. It is commonly expressed as
I use the integral representation to allow for easier computation.
where
Modified Bessel functions of the second kind are often used in non-relativistic expansions of Fermi-dirac integrals. With some simplification relevant to the work,
A more exact form of the modified Bessel function (the one, in fact, used for computation) is given by