Пример #1
0
        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));
        }
Пример #2
0
		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);
		}