.Buildings.Fluid.Utilities.polynomial

Polynomial, used because OpenModelica 1.4.3 does not expand the sum() into a scalar

Information

Function that computes

y = ∑i=1n ci xi-1


Interface

function polynomial
  extends Modelica.Icons.Function;
  input Real[:] c "Coefficients";
  input Real x "Independent variable";
  output Real y "Dependent variable";
end polynomial;

Revisions


Generated at 2025-04-18T18:20:08Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos