Commit Graph
2 Commits
Author SHA1 Message Date
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
upstream 3733383faf Upstream tuneinsight/lattigo state of the touched files before 9e074460b4 2026-09-02 04:47:48 +02:00