- Inelastica.math.misc.box(mu1, mu2, grid, kT)[source]
Window (box) function defined as \(n_F(\mu_2)-n_F(\mu_1)\)
- Inelastica.math.misc.fermi(mu, E, kT)[source]
Fermi function \(n_F(\mu) = 1/[exp((E-\mu)/k_BT)+1]\).
- Inelastica.math.misc.interpolate(nx, x, y)[source]
Interpolate \(f(x)=y\) to find \(f(nx)\). Extrapolation allowed.
NB: Makes no checks for nx inside x region!!!
- Parameters:
- nxndarray
Abscissa values to interpolate the function.
- xndarray
Known abscissa values.
- yndarray
Known function values.
- Returns:
- nyndarray
Interpolated function values on nx.
- Inelastica.math.misc.trapez(x, f, equidistant=False)[source]
Integration of vector f on grid x using the 3rd degree polynomial. The grid x does not have to be equidistant.
- Parameters:
- xndarray
- fndarray
- equidistantbool
False = 3rd degree polynomial method. True = Linear trapez method.
- Returns:
- rescomplex number
Result of the integration.