fn fit_opt_err_delta( source: &impl ParamCurveFit, accuracy: f64, limit: f64, range: Range<f64>, n: usize, ) -> Result<f64, f64>