.Modelica_LinearSystems2.Math.Polynomial.degree

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

Interface

encapsulated function degree
  import Modelica_LinearSystems2.Math.Polynomial;
  input Polynomial p;
  output Integer result "Degree of polynomial p";
end degree;

Generated at 2024-12-17T19:26:02Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos