poly

Evaluate polynomial A(x) = a0 + a1x + a2x2 + a3x3; ...

Uses Horner's rule A(x) = a0 + x(a1 + x(a2 + x(a3 + ...)))

T
poly
(
T
)
(
T x
,
T[] A
)

Parameters

A T[]

array of coefficients a0, a1, etc.

x T

point in which to evaluate polynomial

Meta