# Fast Polynomial Evaluation - Compute polynomials twice as fast

> Hacker News story 49623398 · language: en · submitted 2026-09-09
> Web version: https://zeli.app/story/49623398
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 134 · by [thomasahle](<https://news.ycombinator.com/user?id=thomasahle>) · 💬 41
[original](<https://thomasahle.com/fast-polynomials/>) · [HN discussion](<https://news.ycombinator.com/item?id=49623398>)

## Summary

Fast Polynomial Evaluation is a web tool that compiles evaluation chains for polynomials, reducing the number of multiplications needed from n to about n/2+1. By preprocessing coefficients with rational arithmetic, it achieves exact results and outperforms classic methods like Horner's. You can input any polynomial, choose a field (rationals, reals, complex, or finite fields), and get optimized C code or mathematical expressions. This is useful for approximating functions like exp, sin, and cos, or for applications in cryptography, hashing, and coding theory. The tool is backed by a new paper and open-source code on GitHub.

## Key quote

> With a bit of preprocessing of the coefficients, ⌊n/2⌋+1 multiplications suffice for any monic polynomial—one more for a general one—doubling the speed of polynomial evaluation.

## HN discussion (41 comments)

### [huhtenberg](<https://news.ycombinator.com/item?id=49641201>)

> \* "monic" = the leading coefficient is 1

### [emil-lp](<https://news.ycombinator.com/item?id=49640320>)

> I read your arxiv paper yesterday (or was it the day before).
>
> Do you think this can be used to speed up the algebraic method for k-path?
>
> If so, you should enter next years PACE challenge.

### [pvillano](<https://news.ycombinator.com/item?id=49639199>)

> This is super cool. I learned a lot playing with the demo. I only knew Horner and Estrin, but I think I've gotten a grasp on most of them.
>
> One small change I'd recommend is for the graph visualization, have a separate source node for each x, x^2, x^4 used. A single x source clutters the graph and hides the structure.

### [IsTom](<https://news.ycombinator.com/item?id=49640814>)

> Pretty cool, especially in finite fields. Though coefficients seem to blow up pretty quick in Q?

### [throwaway81523](<https://news.ycombinator.com/item?id=49639123>)

> If you're going to preprocess the polynomial, maybe you want to evaluate it at many different points.  But then why not use the FFT?

---

## Cite

- Page: https://zeli.app/story/49623398
- Date: 2026-09-09
- Source: thomasahle.com (https://thomasahle.com/fast-polynomials/)
- Hacker News: https://news.ycombinator.com/item?id=49623398

## Other languages

- zh: https://zeli.app/zh/story/49623398 · markdown: https://zeli.app/zh/story/49623398.md
- ja: https://zeli.app/ja/story/49623398 · markdown: https://zeli.app/ja/story/49623398.md
- ko: https://zeli.app/ko/story/49623398 · markdown: https://zeli.app/ko/story/49623398.md
- de: https://zeli.app/de/story/49623398 · markdown: https://zeli.app/de/story/49623398.md
- es: https://zeli.app/es/story/49623398 · markdown: https://zeli.app/es/story/49623398.md
- ru: https://zeli.app/ru/story/49623398 · markdown: https://zeli.app/ru/story/49623398.md
