function fromPolynomials
import Modelica;
import Modelica_LinearSystems2;
import Modelica_LinearSystems2.DiscreteTransferFunction;
import Modelica_LinearSystems2.Math.Polynomial;
input Polynomial n "Numerator polynomial";
input Polynomial d "Denominator polynomial";
input Modelica.Units.SI.Time Ts "Sample time";
input Modelica_LinearSystems2.Utilities.Types.Method method = Modelica_LinearSystems2.Utilities.Types.Method.Trapezoidal "Discretization method";
input String uName = "" "input name";
input String yName = "" "output name";
output DiscreteTransferFunction dtf(n = n.c, d = d.c, Ts = Ts, method = method, uName = uName, yName = yName);
end fromPolynomials;