.Modelica_LinearSystems2.ZerosAndPoles.Internal.secondOrderToString

Information

Transform vector of coefficients of second order polynomials to a string representation

Interface

function secondOrderToString
  import Modelica_LinearSystems2.Math.Matrices;
  import Modelica_LinearSystems2.Math;
  input Real c[:, 2] = fill(0.0, 0, 2) "[p,p^0] coefficients osecond order polynomials: polynom(p) = p^2 + c[:,1]*p + c[:,2]";
  input Integer significantDigits = 6 "Number of significant digits that are shown";
  input String name = "p" "Independent variable name used for printing";
  input Boolean normalized = false "= true, the polynomials in the string are represented as p^2/c[:,2] + c[:,1]/c[:,2]*p + 1, provided c[i,2]<>0";
  output String s = "";
  output Real gain = 1.0 "If normalized=true, the product(c[i,2]) (for i, where c[i,2]<>0), otherwise gain=1.0";
end secondOrderToString;

Generated at 2024-04-26T18:16:04Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos