b-multiply-by-const
▸ function bMultiplyByConst
(c
: bigint, p
: bigint[]): bigint[]
Defined in basic/bigint/b-multiply-by-const.ts:12
Returns the result of multiplies a polynomial (with bigint coefficients) by a constant.
Parameters:
Name | Type | Description |
---|---|---|
c | bigint | a constant |
p | bigint[] | 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[]