e-differentiate

▸ function eDifferentiate (p: number[][]): number[][]

Defined in calculus/expansion/e-differentiate.ts:22

Returns the exact result (bar underflow / overflow) of differentiating the given polynomial (with Shewchuk expansion coefficients).

example

eDifferentiate([[5], [4], [3], [2], [1]]); //=> [[20], [12], [6], [2]]

Parameters:

NameTypeDescription
pnumber[][]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: number[][]