dualfroz dbeea4d2e3 fix(bignum): MonomialEval drops highest-degree coefficient and panics on constants
MonomialEval started Horner evaluation from poly[len-2] instead of the
highest-degree coefficient poly[len-1], so it silently ignored the top
coefficient (1 + 2x at x=3 gave 1 instead of 7) and indexed poly[-1] on a
constant polynomial, panicking. Start from poly[n] and iterate from n-1,
matching the documented y = sum x^i * poly[i].

Closes #579
2026-09-02 04:47:48 +02:00
S
Description
My contributions to tuneinsight/lattigo: 2 commits
32 KiB
0 Stars 1 Watchers 0 Forks
Languages
Go 100%