operator recordPolynomial

Record defining the data for a polynomial

Information

This record defines a polynomial, e.g., y = 2*x^2 + 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 such as Polynomial.base(..), Polynomial.fitting(..). Several functions are provided that operate on polynomials.

Components

TypeNameDefaultDescription
Real[:]cPolynomial coefficients (c[1]*x^n + ... c[n]*x + c[n+1])

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
fittingComputes a Polynomial that fits a set of data points in a least-squares sense
degreeReturn degree of polynomial
degree2Return 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
derivativeValueIntegral of polynomial p(x) from x_low to x_high
integralValueIntegral of polynomial p(x) from x_low to x_high
rootsDetermine zeros of polynomial, i.e., points x with p(x)=0
numberOfRootsDetermine number of roots of polynomial
rootsOfNonZeroHighestCoefficientPolynomialDetermine zeros of polynomial where highest coefficient of polynomial is not zero
evaluate_derEvaluate derivative of polynomial at a given abszissa value
integralValue_derEvaluate derivative of integral of polynomial p(x) from x_low to x_high, assuming only x_high as time-dependent (Leibniz rule)
InternalInternal library of record Polynomial (should not be directly used by user)