differentiate
▸ function differentiate
(p
: number[]): number[]
Defined in calculus/double/differentiate.ts:16
Returns the result of differentiating the given polynomial in double precision.
example
differentiate([5, 4, 3, 2, 1]); //=> [20, 12, 6, 2]
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[]