dd-differentiate
▸ function ddDifferentiate
(p
: number[][]): number[][]
Defined in calculus/double-double/dd-differentiate.ts:22
Returns the result of differentiating the given polynomial (with coefficients given in double-double precision) in double-double precision.
example
ddDifferentiate([[0,5], [0,4], [0,3], [0,2], [0,1]]); //=> [[0,20], [0,12], [0,6], [0,2]]
Parameters:
Name | Type | Description |
---|---|---|
p | number[][] | a polynomial with coefficients given densely as an array of double-double precision floating point numbers from highest to lowest power, e.g. [[5],[-3],[0]] represents the polynomial 5x^2 - 3x |
Returns: number[][]