b-prem-sequence-trivial
▸ function bPremSequenceTrivial
(f
: bigint[], g
: bigint[]): bigint[][]
Defined in euclidean-division-related/bigint/b-prem-sequence-trivial.ts:24
❗ DON'T USE - coefficients grow way too big, making it slow - use bPremSequenceSubresultant instead. ❗
Returns the trivial pseudo remainder sequence of a/b.
precondition: g !== [], i.e. unequal to the zero polynomial.
Parameters:
Name | Type | Description |
---|---|---|
f | bigint[] | the polynomial a in the formula a = bq + r; the polynomial is given with coefficients as a dense array of bigints from highest to lowest power, e.g. [5n,-3n,0n] represents the polynomial 5x^2 - 3x |
g | bigint[] | the polynomial b in the formula a = bq + r; |
Returns: bigint[][]