Ion_fit_Be
Fit Function | \[\sigma (x) = \left( \frac{10^{-13}}{xI} \right) \left(A_1 \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`. |
Arguments |
|
||||||||||||||||||||||||||||||||||||
Return values |
|
||||||||||||||||||||||||||||||||||||
Code | def Ion_fit_Be(x A1, A2, A3, A4, A5, A6, I): """ This function calculates electron impact ionization cross sections (in cm2) of Be I. 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* 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 |