b-evaluate-at-0
▸ function bEvaluateAt0
(p
: bigint[]): bigint
Defined in evaluate/bigint/b-evaluate-at-0.ts:15
Returns the constant term of the given polynomial.
example
bEvaluateAt0([3n,2n,99n]); //=> 99n
Parameters:
Name | Type | Description |
---|---|---|
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