Fit Function: Ion_fit_Be1

Fit Function \[\sigma (x) = \left( \frac{10^{-13}}{xI} \right) \left(A_1^2 \ln\left( \frac{x}{I} \right) + \displaystyle\sum_{i=2}^{6}A_i\left(1-\frac{I}{x}\right)^{i-1} \right)\]
Comments Python code requires NumPy imported as `np`.

Python

Arguments
namedescriptionunitstype(s)
x energy eV float, np.ndarray
A1 fit coefficient eV cm 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 potential eV float
Return values
namedescriptionunitstype(s)
sigma cross section cm2 float, np.ndarray
Code
def Ion_fit_Be1(x  A1, A2, A3, A4, A5, A6, I):
    """
    This function calculates electron impact ionization cross sections (in cm2) of 
    Be II.
    param x: requested electron-impact energy in eV
    type x: float, np.ndarray
    param Ai: fit coefficient 
    type Ai: float
    param I: ionization energy in eV
    type I: float
    """
    sigma = ((1e-13/x/I)*(A1**2 * np.log(x/I) + A2 * (1-(I/x)) + A3 * (1-(I/x))**2 
                         + A4 * (1-(I/x))**3 + A5 * (1-(I/x))**4 + A6 * (1-(I/x))**5)  
    return sigma