.Modelica_LinearSystems2.Math.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

NameDescription
 ExamplesPackage 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
 xGenerate a base polynomial y=x
 fittingCompute a Polynomial that fits a set of data points in a least-squares sense
 degreeReturn degree of polynomial
 plotPlot polynomial y=p(x)
 derivativeDerivative of polynomial
 integralIndefinite integral of polynomial
 evaluateEvaluate a polynomial at a given Real abszissa value
 evaluateMatrixEvaluate a polynomial with a matrix argument
 evaluateComplexEvaluate a polynomial at a given Complex abszissa value
 derivativeValueEvaluate an i-the derivative of polynomial at a given Real abszissa value
 integralValueEvaluate integral of polynomial from x_low to x_high
 rootsDetermine zeros of polynomial, i.e., points x with p(x)=0
 numberOfRootsDetermine number of roots of polynomial
 InternalInternal utility functions of record Polynomial that should not be directly utilized by the user

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