e-is-unit
▸ function eIsUnit
(p
: number[][]): boolean
Defined in basic/expansion/e-is-unit.ts:11
Returns true if the given polynomial (with coefficients given as Shewchuk floating point expansions) is the unit polynomial, i.e. === 1.
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: boolean