Fit Function: h_ein_janev

Fit Function \[\sigma_{ion} (E) = \frac{10^{-13}}{IE} \Bigg[A_1 \ln \bigg( \frac{E}{I} \bigg) + \sum_{j=1}^5 A_{j+1}\bigg(1 - \frac{E}{I} \bigg)^j \Bigg]\]
Comments Python code requires NumPy imported as `np`.

Python

Arguments
namedescriptionunitstype(s)
E impact energy eV float, np.ndarray
A1 fit coefficient eV2 cm2 float
A2 fit coefficient eV2 cm2 float
A3 fit coefficient eV2 cm2 float
A4 fit coefficient eV2 cm2 float
A5 fit coefficient eV2 cm2 float
A6 fit coefficient eV2 cm2 float
I ionization energy eV float
Return values
namedescriptionunitstype(s)
sigma cross section cm2 float, np.ndarray
Code
def h_ein_janev(E, A1, A2, A3, A4, A5, A6, I):
    """
    This function calculates electron impact ionization cross sections (in cm2) of 
    H n=1, 2, 3.
    param E: requested electron-impact energy in eV
    type E: float, np.ndarray
    param Ai: fit coefficient 
    type Ai: float
    param I: ionization energy in eV
    type I: float
    """
    sigma = 1e-13/(E*I)*(A1*np.log(E/I)+A2*(1-I/E) +  A3*(1-I/E)**2
                     + A4*(1-I/E)**3 + A5*(1-I/E)**4 + A6*(1-I/E)**5)
    return sigma