integral_p = Polynomial.integral(p);
Define a polynomial integral_p
being an indefinite integral of
the polynomial p
.
import Modelica_LinearSystems2.Math.Polynomial; x = Polynomial.x(); p1 = -6*x^2 + 4*x -3; int_p = Polynomial.integral(p1); // -2*x^3 + 2*x^2 - 3*x
encapsulated function integral import Modelica_LinearSystems2.Math.Polynomial; input Polynomial p "Polynomial"; output Polynomial integral_p(redeclare Real c[size(p.c, 1) + 1]) "Indefinite integral of polynomial p"; end integral;