functionf

Polynomial expressed in form: f = ((… + a-1-n)/x + a-n)/x + a1-n + x·(a2-n + x·(a3-n + …))

Extends from Modelica.Icons.Function (Icon for functions).

Information

For high-order polynomials, this is more computationally efficient than the form Σai xn + i - 1.

Note that the order of the polynomial is n + size(a, 1) - 1 (not n).

The derivative of this function is df().

Inputs

TypeNameDefaultDescription
RealxArgument
Real[:]aCoefficients
Integern0Power of the first term

Outputs

TypeNameDefaultDescription
RealfResult

Contents

NameDescription
positivePolyprotectedPolynomial expressed in form: y = x*(a + x*(a2 + …))