.Modelica_LinearSystems2.Math.Polynomial.'constructor'.fromVector

Information

This function constructs a polynomial from given coefficients.

Example:

import Modelica_LinearSystems2.Math.Polynomial;

Polynomial( {1/4, 8, 0, 0, 2} );
// 0.25*x^4 + 8*x^3 + 2

Interface

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;

Generated at 2024-12-17T19:26:02Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos