functionnumeratorDegree
Return numerator degree
Information
Syntax
result = TransferFunction.Analysis.numeratorDegree(tf)
Description
Function Analysis.numeratorDegree calculates the degree of the numerator polynomial of a transfer function.
Example
TransferFunction s = Modelica_LinearSystems2.TransferFunction.s(); Modelica_LinearSystems2.TransferFunction tf=(s+1)/(s^2+s+1); Real nDegree; algorithm nDegree := TransferFunction.Analysis.numeratorDegree(tf); // nDegree = 1
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| TransferFunction | tf | Transfer function of a system |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | result |