This function constructs a polynomial from given coefficients.
import Modelica_LinearSystems2.Math.Polynomial; Polynomial( {1/4, 8, 0, 0, 2} ); // 0.25*x^4 + 8*x^3 + 2
function fromVector import Modelica; import Modelica_LinearSystems2.Math.Polynomial; input Real c[:] "Coefficients of polynomial in descending order"; output Polynomial p(redeclare Real c[size(c, 1)]) "Polynomial"; end fromVector;