pub fn integrate_simpsons_kahan(
grid: &ContinuousGrid<'_>,
step_size: f32,
) -> Result<(f64, f32), CalculusError>Expand description
Simpson’s rule integration with Kahan summation for precision.
Processes the grid in chunks to maintain cache locality and enable SIMD acceleration. The grid must contain an odd number of samples (an even number of panels). Returns the integrated value and Kahan compensation.