e-from-roots
▸ function eFromRoots
(roots
: number[][]): object
Defined in roots/from-roots/expansion/e-from-roots.ts:24
Constructs a double-double precision polynomial from the given roots by multiplying out the factors (x - root1)(x - root2) in infinite precision (bar overflow) and rounding back to double-double precision; also returns a coefficient-wise error polynomial and a function that returns the exact polynomial.
- mostly for testing purposes.
Parameters:
Name | Type | Description |
---|---|---|
roots | number[][] | an array of roots |
Returns: object
Name | Type |
---|---|
pDd | number[][] |
pE | number[] |
getPExact | () => number[][] |