DF_fit_Be1
Fit Function | \[\Omega (x) = A_1^2 + \frac{A_2}{x} + \frac{A_3}{x^2} + \frac{A_4}{x^3} + \frac{A_5}{x^4}\] |
Comments | Python code requires NumPy imported as `np`. |
Arguments |
|
||||||||||||||||||||||||||||||||
Return values |
|
||||||||||||||||||||||||||||||||
Code | def DF_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 + A2/x + A3/x**2 + A4/x**3 + A5/x**4 return Omega |