comp-horner-is-faithful

â–¸ function compHornerIsFaithful (p: number[], x: number): object

Defined in evaluate/double/comp-horner-is-faithful.ts:38

Returns the result of evaluating a univariate polynomial using once compensated Horner's method, including a dynamic check for faithfull rounding and a certified running error bound.

Parameters:

NameTypeDescription
pnumber[]a polynomial with coefficients given densely as an array of double floating point numbers from highest to lowest power, e.g. [5,-3,0] represents the polynomial 5x^2 - 3x
xnumberthe value at which to evaluate the polynomial

Returns: object

NameType
isFaithfulboolean
errBoundnumber
r̄number