e-subtract
▸ function eSubtract
(p1
: number[][], p2
: number[][]): number[][]
Defined in basic/expansion/e-subtract.ts:27
Returns the exact result (bar underflow / overflow) of subtracting the second polynomial from the first (both with coefficients given as Shewchuk floating point expansions); (p1 - p2).
example
eSubtract([[2],[3]],[[4],[4]]); //=> [[-2], [-1]]
Parameters:
Name | Type | Description |
---|---|---|
p1 | number[][] | minuend; the polynomial from which will be subtracted; a polynomial with coefficients given densely as Shewchuk floating point expansions from highest to lowest power, e.g. [[5],[-3],[0]] represents the polynomial 5x^2 - 3x |
p2 | number[][] | subtrahend; the polynomial that will be subtracted |
Returns: number[][]