Multiply a real number with a DiscreteTransferFunctions (r * dtf2)
function 'r*dtf' import Modelica; import Modelica_LinearSystems2.Math.Polynomial; import Modelica_LinearSystems2.DiscreteTransferFunction; input Real r "Real number"; input DiscreteTransferFunction dtf "Transfer function system 1"; output DiscreteTransferFunction result = dtf; end 'r*dtf';