pub fn biry_raw<T: BesselFloat>(
z: Complex<T>,
scaling: Scaling,
) -> Result<AiryResult<T>, Error>Expand description
Airy function of the second kind Bi(z) with accuracy status.
Like biry, but returns an AiryResult that includes an Accuracy status:
Accuracy::Normal— no significant precision lossAccuracy::Reduced— more than half of significant digits may be lost (|z| very large)
The scaling parameter selects Scaling::Unscaled or Scaling::Exponential;
see crate-level docs for details.
§Example
use complex_bessel::*;
use num_complex::Complex;
let z = Complex::new(0.0_f64, 0.0);
let result = biry_raw(z, Scaling::Unscaled).unwrap();
assert!((result.value.re - 0.6149).abs() < 1e-3); // Bi(0) ≈ 0.6149
assert!(matches!(result.status, Accuracy::Normal));§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).