pub fn gauss_kronrod_quadrature_optimized<F, T, S, Y>( f: F, (a, b): (T, S), method: Integral, ) -> Ywhere F: Fn(f64) -> Y, T: Into<f64>, S: Into<f64>, Y: GKIntegrable,