e-is-const-or-zero
▸ function eIsConstOrZero
(p
: number[][]): boolean
Defined in basic/expansion/e-is-const-or-zero.ts:11
Returns true if the given polynomial (with coefficients given as Shewchuk floating point expansions) is a constant or the zero polynomial.
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