Skip to main content

kelvin

Function kelvin 

Source
pub fn kelvin(
    x: f64,
) -> (Complex<f64>, Complex<f64>, Complex<f64>, Complex<f64>)
Expand description

All four Kelvin functions and their derivatives at x (SciPy’s kelvin): returns (ber + i bei, ker + i kei, ber' + i bei', ker' + i kei'), from ber x + i bei x = I₀(x e^{iπ/4}) and ker x + i kei x = K₀(x e^{iπ/4}), with derivatives e^{iπ/4} I₁ and −e^{iπ/4} K₁. The I integrals use the periodic trapezoid rule, the K integrals the trapezoid rule on the real half line; both converge exponentially. For x < 0 ber and bei are even and their derivatives odd, while ker, kei and theirs are NaN.