b-subtract

▸ function bSubtract (a: bigint[], b: bigint[]): bigint[]

Defined in basic/bigint/b-subtract.ts:24

Returns the result of subtracting the second polynomial from the first with coefficients given as bigints; (p1 - p2).

example

bSubtract([2n,3n],[4n,4n]); //=> [-2n, -1n]

Parameters:

NameTypeDescription
abigint[]minuend; the polynomial from which will be subtracted; a polynomial with coefficients given densely as an array of bigints from highest to lowest power, e.g. [5,-3,0] represents the polynomial 5x^2 - 3x
bbigint[]subtrahend; the polynomial that will be subtracted

Returns: bigint[]