polyEval

Evaluate a polynomial c[1] + c[2]*u + c[3]*u^2 + ....

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Evaluate a polynomial using Horner's scheme.

Syntax

y = polyEval(c, u)

Inputs (2)

c

Type: Real[:]

Description: Polynomial coefficients

u

Type: Real

Description: Abscissa value

Outputs (1)

y

Type: Real

Description: = c[1] + u*(c[2] + u*(c[3] + u*(c[4]*u^3 + ...)))