divide-by-const
▸ function divideByConst
(p
: number[], c
: number): number[]
Defined in basic/double/divide-by-const.ts:11
Divides a polynomial by a constant in double precision.
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 |
c | number | a constant |
Returns: number[]