Integration(Func <double, double> f, double a, double b, OscillatoryTerm oscTerm, double omega, double epsabs, double epsrel, int limit, out double result, out double abserr, ref object tempStorage ) { var algo = tempStorage as QawoIntegration; if (null == algo) { tempStorage = algo = new QawoIntegration(); } return(algo.Integrate(f, a, b, oscTerm, omega, epsabs, epsrel, limit, out result, out abserr)); }
Integration(Func<double, double> f, double a, double b, OscillatoryTerm oscTerm, double omega, double epsabs, double epsrel, int limit, out double result, out double abserr, ref object tempStorage ) { QawoIntegration algo = tempStorage as QawoIntegration; if (null == algo) tempStorage = algo = new QawoIntegration(); return algo.Integrate(f, a, b, oscTerm, omega, epsabs, epsrel, limit, out result, out abserr); }