Skip to main content

fermi_dirac_integral

Function fermi_dirac_integral 

Source
pub fn fermi_dirac_integral(j: f64, x: f64) -> f64
Expand description

The complete Fermi-Dirac integral of real order j > -1, F_j(x) = 1/Γ(j+1) ∫₀^∞ t^j / (1 + e^(t-x)) dt.

Evaluated by composite 20-point Gauss-Legendre quadrature after a substitution that removes the endpoint singularity. Accuracy is about 1e-13 for orders where k(j+1) is an integer for a small k (all integer and half-integer orders) and degrades gradually otherwise (and as j → -1). Returns NaN for j <= -1.