packagePolynomials

Library of functions operating on polynomials (including polynomial fitting)

Extends from Modelica.Icons.FunctionsPackage (Icon for packages containing functions).

Information

This package contains functions to operate on polynomials, in particular to determine the derivative and the integral of a polynomial and to use a polynomial to fit a given set of data points.

Copyright © 2004-2025, Modelica Association and contributors

Contents

NameDescription
evaluateEvaluate polynomial at a given abscissa value
evaluateWithRangeEvaluate polynomial at a given abscissa value with linear extrapolation outside of the defined range
derivativeDerivative of polynomial
derivativeValueValue of derivative of polynomial at abscissa value u
secondDerivativeValueValue of 2nd derivative of polynomial at abscissa value u
integralIndefinite integral of polynomial p(u)
integralValueIntegral of polynomial p(u) from u_low to u_high
fittingComputes the coefficients of a polynomial that fits a set of data points in a least-squares sense
evaluate_derEvaluate derivative of polynomial at a given abscissa value
evaluateWithRange_derEvaluate derivative of polynomial at a given abscissa value with extrapolation outside of the defined range
integralValue_derTime derivative of integral of polynomial p(u) from u_low to u_high, assuming only u_high as time-dependent (Leibniz rule)
derivativeValue_derTime derivative of derivative of polynomial
rootsCompute zeros of a polynomial where the highest coefficient is assumed as not to be zero

Revisions

  • Oct. 22, 2004 by Martin Otter (DLR):
    Renamed functions to not have abbreviations.
    Based fitting on LAPACK
    New function to return the polynomial of an indefinite integral
  • Sept. 3, 2004 by Jonas Eborn (Scynamics):
    polyderval, polyintval added
  • March 1, 2004 by Martin Otter (DLR):
    first version implemented