Integration(Func <double, double> f, double[] pts, int npts, double epsabs, double epsrel, int limit, out double result, out double abserr, ref object tempStorage ) { var algo = tempStorage as QagpIntegration; if (null == algo) { tempStorage = algo = new QagpIntegration(); } return(algo.Integrate(f, pts, npts, epsabs, epsrel, limit, out result, out abserr)); }
Integration(Func<double, double> f, double[] pts, int npts, double epsabs, double epsrel, int limit, out double result, out double abserr, ref object tempStorage ) { QagpIntegration algo = tempStorage as QagpIntegration; if (null == algo) tempStorage = algo = new QagpIntegration(); return algo.Integrate(f, pts, npts, epsabs, epsrel, limit, out result, out abserr); }