Description
Herbie is a tool that automatically improves the accuracy of floating-point expressions. Floating-point rounding can make a simple formula badly inaccurate, and Herbie detects inaccurate expressions and finds more accurate replacements. The site's example takes sqrt(x+1) - sqrt(x), which is inaccurate when x is large, and rewrites it as 1/(sqrt(x+1) + sqrt(x)), which the site says is accurate for all x. Herbie's release news says version 2.0 taught it to optimize for both accuracy and speed, with a redesign of its reports and metrics. Later releases added a platform API for pluggable compilation targets, faster generated code, and initial array support. The project offers a web demo, install instructions, a tutorial, release notes, documentation and a list of papers about Herbie. Its benchmark results on the Hamming suite show accuracy before and after Herbie's changes, with longer arrows meaning larger gains. The source code is on GitHub, with a bug reporting page and the license in the repository.…
Highlights
- Finds and fixes floating-point accuracy problems
- Web demo to try it without installing
- Optimizes for accuracy and speed
- Pluggable compilation targets
- Tutorial, docs and papers
Ratings & Reviews
No ratings yet
Be the first to rate Herbie.
People also visit
Herbie FAQ
What is Herbie?
A tool that finds floating-point accuracy problems in expressions and suggests more accurate replacements.
Can I try it without installing?
Yes. The site has a web demo.
Does it optimize for speed?
Herbie 2.0 added optimization for both accuracy and speed, according to the release news on the site.
Where can I learn how it works?
The site links a tutorial, documentation and a list of papers about Herbie.
Is it open source?
Its source code is on GitHub, under the license in the repository's LICENSE.md file.
What are the best Herbie alternatives?
Popular alternatives to Herbie include SpeedCrunch, RightNow AI and Hemen Hesap. See all Herbie alternatives



















