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