e-multiply

▸ function eMultiply (a: number[][], b: number[][]): number[][]

Defined in basic/expansion/e-multiply.ts:31

Returns the exact result (bar underflow / overflow) of multiplying two polynomials (with coefficients given as Shewchuk floating point expansions).

example

eMultiply([[1],[2],[3]], [[2],[5],[3],[5]]); //=> [[2], [9], [19], [26], [19], [15]]

Parameters:

NameTypeDescription
anumber[][]a polynomial with coefficients given densely as an array of Shewchuk floating point expansions from highest to lowest power, e.g. [[5],[-3],[0]] represents the polynomial 5x^2 - 3x
bnumber[][]another polynomial.

Returns: number[][]