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:

NameTypeDescription
rootsnumber[][]an array of roots

Returns: object

NameType
pDdnumber[][]
pEnumber[]
getPExact() => number[][]