abs-coeff
▸ function absCoeff
(p
: number[]): number[]
Defined in basic/double/abs-coeff.ts:11
Returns the polynomial with all coeffients the absolute value of the given polynomial.
Parameters:
Name | Type | Description |
---|---|---|
p | number[] | a polynomial with coefficients given densely as an array of double floating point numbers from highest to lowest power, e.g. [5,-3,0] represents the polynomial 5x^2 - 3x |
Returns: number[]