modelica / Modelica_LinearSystems2

Free library providing different representations of linear, time invariant differential and difference equation systems, as well as typical operations on these system descriptions.
19 stars 19 forks source link

Eliminate double parentheses when printing zp #256

Open tobolar opened 1 month ago

tobolar commented 1 month ago

For

Modelica_LinearSystems2.ZerosAndPoles(
  Modelica_LinearSystems2.TransferFunction(n={1}, d={1,2,3}));

it is returned

1 /  ( (p^2 + 2*p + 3) )

The outermost parentheses could be disabled in such a case.