functiondegree
Return degree of polynomial
Information
Syntax
result = Polynomial.degree(p);
Description
This function computes the order of a Polynomial p.
Example:
import Modelica_LinearSystems2.Math.Polynomial;
Polynomial p = Polynomial({0,0,2,1});
// 2*x + 1
Polynomial.degree(p)
// = 1
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Polynomial | p |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | result | Degree of polynomial p |