h_hcx_janev_scaled
Fit Function | \[\sigma_{CX}^{n>1}(E)= \frac{A_7^410^{-16}A_1 \ln \big( \frac{A_2}{\tilde E} + A_6 \big)}{1 + A_3 \tilde E + \big( A_4 \tilde E \big)^{3.5} + \big(A_5 \tilde E \big)^{5.4} }, \tilde E = EA_7^2\] |
Comments | Python code requires NumPy imported as `np`. |
Arguments |
|
||||||||||||||||||||||||||||||||||||
Return values |
|
||||||||||||||||||||||||||||||||||||
Code | def h_hcx_janev_scaled(E, A1, A2, A3, A4, A5, A6, A7): """ This function calculates proton impact charge exchange cross sections (in cm2) of H n>1. param E: requested electron-impact energy in keV type E: float, np.ndarray param Ai: fit coefficient type Ai: float """ e = E*A7**2 sigma = A7**4 * 1e-16 * A1 * np.log(A2/e + A6) / (1 + A3*e +(A4*e)**3.5 + (A5*e)**5.4) return sigma |