b-divide-by-const

▸ function bDivideByConst (p: bigint[], c: bigint): bigint[]

Defined in basic/bigint/b-divide-by-const.ts:11

Divides (using integer division) a polynomial by a constant.

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
cbiginta constant

Returns: bigint[]