pub fn biry_scaled<T: BesselFloat>(z: Complex<T>) -> Result<Complex<T>, Error>Expand description
Scaled Airy function of the second kind, exp(−|Re(ζ)|) · Bi(z), where ζ = (2/3) z√z.
Bi(z) grows super-exponentially for large positive real z. The scaling factor exp(−|Re(ζ)|) keeps the result representable.
See crate-level docs for the full scaling table.
§Example
use complex_bessel::biry_scaled;
use num_complex::Complex;
let z = Complex::new(5.0_f64, 0.0);
let bi_s = biry_scaled(z).unwrap();
assert!((bi_s.re - 0.3811).abs() < 1e-3); // exp(-|Re(ζ)|) * Bi(5) ≈ 0.3811§Errors
Error::Overflowif |z| is too large for a finite result.Error::TotalPrecisionLossif |z| is too large for any significant digits (roughly > 10⁶ for f64).Error::ConvergenceFailureif an internal series or recurrence does not converge (rare).