b-multiply
▸ function bMultiply
(a
: bigint[], b
: bigint[]): bigint[]
Defined in basic/bigint/b-multiply.ts:20
Returns the result of multiplying 2 polynomials with bigint coefficients.
example
bMultiply([1n,2n,3n], [2n,5n,3n,5n]); //=> [2n, 9n, 19n, 26n, 19n, 15n]
Parameters:
Name | Type | Description |
---|---|---|
a | 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 |
b | bigint[] | another polynomial. |
Returns: bigint[]