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
,
const(T[]) A
)

Parameters

A const(T[])

array of coefficients a0, a1, etc.

Meta