packagePolynomials_Temp

Temporary Functions operating on polynomials (including polynomial fitting); only to be used in Modelica.Media.Incompressible.TableBased

Extends from Modelica.Icons.Package (Icon for standard packages).

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-2016, Modelica Association and DLR.

This package is free software. It can be redistributed and/or modified under the terms of the Modelica license, see the license conditions and the accompanying disclaimer in the documentation of package Modelica in file "Modelica/package.mo".

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

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