java - Apache Commons Math: get derivate/integrate function -
i'm working polynomialfunction. derivate/integrate function f
in next way:
// derivation ... new polynomialfunction(vector).value(x).getpartialderivative(derivationorder) // integration ... univariateintegrator integrator = new iterativelegendregaussintegrator(pointsnumber, relativeaccuracy, absoluteaccuracy, miniterations, maxiterations); integrator.integrate(128, f, from, to);
but how derivation/integration result function f
without specifying real values?
i.e. derivate (8 + 3x + x^2) => 3 + 2x
for polynomial functions, can derivatives directly (as polynomials) using polynomialderivative
method of polynomialfunction
class. there more general setup differentiation described in analysis section of commons math user guide.
Comments
Post a Comment