e-negate
▸ function eNegate
(p
: number[][]): number[][]
Defined in basic/expansion/e-negate.ts:21
Returns the negative of the given polynomial (with coefficients given as Shewchuk floating point expansions), i.e. (p -> -p).
example
eNegate([[0.1], [-0.2]]); //=> [[-0.1], [0.2]]
Parameters:
Name | Type | Description |
---|---|---|
p | number[][] | 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 |
Returns: number[][]