b-differentiate

▸ function bDifferentiate (p: bigint[]): bigint[]

Defined in calculus/bigint/b-differentiate.ts:15

Returns the result of differentiating the given polynomial.

example

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

Parameters:

NameTypeDescription
pbigint[]a polynomial with coefficients given densely as an array of bigints from highest to lowest power, e.g. [5n,-3n,0n] represents the polynomial 5x^2 - 3x

Returns: bigint[]