Skip to content
Tech News
← Back to articles

Herbie: Automatically improve imprecise floating point formulas

read original get Floating Point Error Corrector → more articles
Why This Matters

Herbie is a tool that automatically rewrites floating point expressions to improve their accuracy, addressing common issues with floating point arithmetic inaccuracies that can affect software reliability. Its ability to optimize expressions for both precision and speed makes it valuable for developers and industries where numerical accuracy is critical, such as scientific computing and financial modeling.

Key Takeaways

Herbie Tutorial Try

Install

Learn

Herbie rewrites floating point expressions to make them more accurate. Floating point arithmetic is inaccurate; even 0.1 + 0.2 ≠ 0.3 in floating-point. Herbie helps find and fix these mysterious inaccuracies.

To get started, download and install Herbie. You're then ready to begin using it.

Giving Herbie expressions

Start Herbie with:

racket -l herbie web

Alternatively, if you added herbie to the path, you can always replace racket -l herbie with just herbie .

After a brief wait, your web browser should open and show you Herbie's main window. The most important part of the page is this bit:

... continue reading