h_hex_janev_1n
Fit Function | |
Comments | Python code requires NumPy imported as `np`. |
Arguments |
|
||||||||||||||||||||||||||||||||||||||||||||
Return values |
|
||||||||||||||||||||||||||||||||||||||||||||
Code | def h_hex_janev_1n(E, A1, A2, A3, A4, A5, A6, A7, A8, A9): """ This function calculates proton impact excitation cross sections (in cm2) of H n=1 to n>6 and He+2 of H n=1 to n>6 param E: requested impact energy in keV/u type E: float, np.ndarray param Ai: fit coefficient type Ai: float """ sigma = (6/A9)**3 * 1e-16 * A1 * (np.exp(-A2/E) * np.log(1 + A3*E) / E + A4*np.exp(-A5*E)/ (E**A6 + A7*E**A8)) return sigma |