SPTAEX
Fit Function | \[Y(E_0, \alpha) = Y(E_0, 0)\left\{\cos\left[\left( \frac{\alpha}{\alpha_0}\frac{\pi}{2} \right)^c\right]\right\}^{-f} \exp\left\{b\left(1-\frac{1}{\cos\left[\left( \frac{\alpha}{\alpha_0}\frac{\pi}{2} \right)^c\right]}\right)\right\}\] |
Comments | Extended Yamamura formula |
Arguments |
|
||||||||||||||||||||||||||||
Return values |
|
||||||||||||||||||||||||||||
Code | def sptaex(alpha, f, b, c, Y0, alpha0): alpha = np.radians(alpha) aratio = alpha * pio2 / alpha0 cs = np.cos(aratio ** c) xs1 = np.exp(b * (1 - 1 / cs)) xs2 = 1 / cs**f Y = Y0 * xs1 * xs2 return np.clip(Y, 0, None) |