DA_fit_Be1
Fit Function | \[\Omega (x) = A_1^2 \ln(x) + A_2 + \frac{A_3}{x} + \frac{A_4}{x^2} + \frac{A_5}{x^3} + \frac{A_6}{x^4}\] |
Comments | Python code requires NumPy imported as `np`. |
Arguments |
|
||||||||||||||||||||||||||||||||
Return values |
|
||||||||||||||||||||||||||||||||
Code | def DA_fit_Be1(x, A1, A2, A3, A4, A5, A6): """ This function calculates the dimensionless collision strengths for electron impact excitation of BeII. param x: requested electron-impact energy in threshold units type x: float, np.ndarray param Ai: fit coefficients type Ai: float """ Omega = A1**2 * np.log(x) + A2 + A3/x + A4/x**2 + A5/x**3 + A6/x**4 return Omega |