我正在使用多项式函数。我以以下方式推导/集成我的函数f
:
// derivation ...
new PolynomialFunction(vector).value(x).getPartialDerivative(derivationOrder)
// integration ...
UnivariateIntegrator integrator = new IterativeLegendreGaussIntegrator(pointsNumber, relativeAccuracy, absoluteAccuracy, minIterations, maxIterations);
integrator.integrate(128, f, from, to);
但是如何在f
不指定实际值的情况下从函数中获得推导/积分结果?
即导数 (8 + 3x + x^2) => 3 + 2x