Skip to main content

pbwa

pub fn pbwa(a: f64, x: f64) -> (f64, f64)
Expand description

W(a, x) and its derivative (SciPy’s pbwa, for |a| ≤ 5, |x| ≤ 5 as there): the solution of y'' + (x²/4 − a) y = 0 with W(a, 0) = 2^{−3/4} |Γ(¼ + ia/2)/Γ(¾ + ia/2)|^{½} and W'(a, 0) = −2^{−1/4} |Γ(¾ + ia/2)/Γ(¼ + ia/2)|^{½} (DLMF 12.14.4–5), summed as a power series from the recurrence (n+2)(n+1) c_{n+2} = a c_n − c_{n−2}/4.