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