b-evaluate-at-1
▸ function bEvaluateAt1
(p
: bigint[]): bigint
Defined in evaluate/bigint/b-evaluate-at-1.ts:12
Returns the exact result of evaluating the given polynomial at 1.
- faster than at an arbitrary point.
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