.Modelica_LinearSystems2.Math.Polynomial

Record defining the data for a polynomial

Information

This record defines a polynomial, e.g., y = 2*x2 + 3*x + 1. The general form is:

   y = c[1]*x^n + c[2]*x^(n-1) + ... + c[n]*x + c[n+1];

In the record, the coefficients c[i] are stored. Usually, the record is not directly accessed. Instead, a polynomial is generated with the functions provided in the record, see Polynomial.'constructor'. Also Polynomial.fitting(..) can be helpful. Several functions are provided that operate on polynomials.

See also

Introduction of the Polynomials in Getting started section.

Contents

Name Description
 Examples Package of examples to demonstrate the usage of polynomials
 'constructor' Collection of operators to construct a Polynomial data record
 '-' Collection of operators for subtraction of polynomials
 '+' Add two polynomials (p1 + p2)
 '*' Multiply two polynomials (p1 * p2)
 '/' Divide two polynomials (p1 / p2)
 '^' Integer power of polynomial (p^n)
 '==' Check whether two polynomials are identical
 'String' Transform Polynomial into a String representation
 x Generate a base polynomial y=x
 fitting Compute a Polynomial that fits a set of data points in a least-squares sense
 degree Return degree of polynomial
 plot Plot polynomial y=p(x)
 derivative Derivative of polynomial
 integral Indefinite integral of polynomial
 evaluate Evaluate a polynomial at a given Real abszissa value
 evaluateMatrix Evaluate a polynomial with a matrix argument
 evaluateComplex Evaluate a polynomial at a given Complex abszissa value
 derivativeValue Evaluate an i-the derivative of polynomial at a given Real abszissa value
 integralValue Evaluate integral of polynomial from x_low to x_high
 roots Determine zeros of polynomial, i.e., points x with p(x)=0
 numberOfRoots Determine number of roots of polynomial
 Internal Internal utility functions of record Polynomial that should not be directly utilized by the user

Generated at 2026-04-01T18:18:38Z by OpenModelicaOpenModelica 1.26.3 using GenerateDoc.mos