示例#1
0
        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));
        }
示例#2
0
		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);
		}