e-horner
▸ function eHorner
(p
: number[][], x
: number): number[]
Defined in evaluate/expansion/e-horner.ts:20
Returns the exact result (bar underflow / overflow) of evaluating a univariate polynomial using Horner's method - the result is returned as a Shewchuk expansion.
Parameters:
Name | Type | Description |
---|---|---|
p | number[][] | a polynomial with coefficients given densely as an array of Shewchuk expansions from highest to lowest power, e.g. [[5],[-3],[0]] represents the polynomial 5x^2 - 3x |
x | number | the value at which to evaluate the polynomial |
Returns: number[]