Skip to content
HN On Hacker News ↗

Fast Polynomial Evaluation — chain compiler

▲ 139 points • 42 comments • by thomasahle • 2mo ago • HN discussion ↗

Pangram verdict · v3.3

We believe that this entire text is human-written.

2 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 1 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 86
PEAK AI % 2% · §1
Analyzed
Sep 10
backend: pangram/v3.3
Segments scanned
1 windows
avg 86 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 86 words · 1 segments analyzed

Human AI-generated
§1 Human · 2%

Evaluating Polynomials Fast You may have heard about Horner's method, which evaluates a polynomial of degree n in n multiplications (n−1 if it is monic). But did you know that with a bit of preprocessing of the coefficients, ⌊n/2⌋+1 multiplications suffice for any monic polynomial, one more for a general one? You can use this to approximate functions like exp, sin, cos, or to evaluate polynomials in cryptography, hashing, and coding theory. Simply type a polynomial below, pick your field, and we'll preprocess it for you.