Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
43

[Renovated] Estimating floating point error the easy way

from Words and Buttons Online [alt+shift+b] in programming

Unforeseen floating point error is the source of the most unpleasant bugs. The bugs that come and go unpredictably. The bugs that don't reproduce on unit-tests and lay low through the integration phase only to be seen by your most important customer.
11th May 2019

Stay updated

Get a weekly newsletter with the top 5 articles worth reading every week.

More from Words and Buttons Online

Words and Buttons Online: current hiatus and future plans

Hello! I’m Oleksandr Kaleniuk. I do Words and Buttons Online. Just not too often lately. Last night reminded me that I probably owe my subscribers a “still alive” message. Literally still alive. So here it is. I’m still alive. As for the site, I haven’t written a new piece for about a year and, for the time being, am not planning to do so. The reason is that I’m working two jobs mid-war, and I really have no vigor left for interactive writing. The good news is that I restarted my academic career, and something good may eventually come out of it. I work at the Institute of Nuclear and Thermal Energy (https://dte.kpi.ua/pedahohichnyi-sklad/kaleniuk-oleksandr-serhiiovych/), where I teach numeric methods and explore periodic surfaces and their applications for thermal management. For instance, this is my latest work, code, examples, and whitepaper included: https://codeberg.org/okaleniuk/faitps I also built a tool for online teaching that includes all the visuals from the Words and Buttons, plus many more: https://okaleniuk.codeberg.page/blackboard/. It’s like a slide deck with interactive visuals where you get to form your deck according to your own lecture plan. I do have a lot of material to share. Some classics of numerical methods and mathematical programming, and some really hot insights, straight from the frontier of computational geometry research. So, if I manage to dodge a few more missiles and live to see the impending victory, I will definitely breathe out and come back to writing for Words and Buttons Online. But for now, I have to keep my priorities straight. Stay tuned.

2nd Jul 2026 • 1 votes
Gauss–Seidel visually explained

An interactive demo of the Gauss-Seidel method for solving linear equation systems. When and why does it work? And why, when you flip the equations, it suddenly stop working? You can now play and see.

21st Sep 2025 • 51 votes
Why learn about the golden-section search

An interactive demo of bisection search and golden ratio search algorithms. There is also a motivation to learn them both. Spoiler alert! One converges better, and the other has a better computational cost.

29th Jun 2025 • 51 votes
A smooth and sharp image interpolation you probably haven't heard of

An image interpolation that gives us a continuous and smooth image, where every interpolated value only depends on the four neighboring pixel values. The image becomes smooth, but sharp features remain sharp.

29th Apr 2024 • 89 votes
Rational interpolation

Rational interpolation is a step forward from polynomial interpolation towards rational splines. With rational interpolation, you can build functions that run through a set of points and also have vertical asymptotes whenever you want. With this capability, you can now model functions like logarithms better.

5th Mar 2024 • 84 votes

More in programming

A design audit of an AI-built GitHub clone

slug: design-audit-ai-built-github-clone

12 hours ago • 1 votes
the incredible lightness of not being

Good evening! Long time no type. I am feeling a lightness, a floating, and wanted to share it with you. In a , I confessed that once, adrift, unmoored from God, I threw away my bible and reached instead for a slim pamphlet, the United Nations Declaration of Human Rights. One needs a anchor betimes. It was a funny instinct but not capital-W Wrong. I joined the university chapter of Amnesty International; I wasn’t much on writing to political prisoners, but much more about opposing Wrong, that which was Not Right. Any port in a storm, I suppose. We would table in the university quad, hold posters at prominent intersections in town, and vigil all night outside the state prison on execution nights. I admired the chapter president, and somehow, eventually, in a way I still don’t understand, I became president.previous missive I didn’t do a great job. I’m not great at motivating people; that requires a combination of organization and follow-through, and though I’m good at steady participation (I’ll show up), I will do anything rather than send an e-mail on time. I think I became president by virtue of participating and then proceeded to do it poorly, leading the organization to a period of gentle decline. The nice thing about trying things at university is that there is a natural term limit; graduation bounds the damage any one person can do. — I don’t know what pulls me to this kind of rights-based organization. Though human rights are a useful rhetorical device, I no longer have the grasping faith that they are axiomatic, beyond reason themselves. But they seem to correlate with what I feel in my bones, that a christian who works for the “least of us” is more my comrade than the atheist that can’t be arsed. — Time passed. I changed countries, once, twice; new ports, new storms. One stays plugged in to home, though, and you can’t really unplug from the US. When Trump was elected in 2016 I knew it was going to get bad for immigrants, and I knew also that I couldn’t do anything about it. Anything there, anyway. But it was Not Right. I decided to reach out to a couple local associations that worked for immigrant rights; after all, I am an immigrant here in France, I have been through the system and I knew how to work it pretty well. I ended up joining the local chapter, riding shotgun in the weekly office-hours sessions that sometimes lasted until eleven at night.Ligue des droits de l’Homme I admired the chapter president and somehow, eventually, in a way I don’t understand, I became president. Dint of participation, I expect. Groups like this are funny: there is no graduation, just incapacity, death, and attrition. Around 2018 or so, some lifers got in a spat, and almost tore the place apart. The chapter I inherited in late 2020 was a husk of what it was. I kept the lights on, and I’m still there at the weekly office hours, three weeks out of four. But happily, like university, statutory term limits mitigate the effect that any one person can have, and I am delighted, elated that as of tonight, I am free again, free from being responsible for sending emails to tell people what they already know, that the monthly meeting is the last Thursday in the month, that we need to figure out who will staff which office hours, free to be nagged by someone else instead of being the one to do the nagging. And so that’s the end of tonight’s short note: I’m free, wheee!!!

16 hours ago • 3 votes
Winner, Name that Ware October 2026

The ware for October 2026 is the control board from a SodaStream drinking water carbonation machine. It was really interesting to see people puzzle over the nature of the board – I would say I’d have a similarly difficult time guessing this. On the flip side, I also never would have suspected that the operating […]

yesterday • 2 votes
Sumatra File Manager: Multiple selection

Sumatra File Manager is a file manager for Windows. Multiple selection Several files can be selected with Ctrl and Shift click. See this day in the changelog, the full changelog, or download Sumatra File Manager.

2 days ago • 2 votes
Comments and emails

Why Bear doesn't have comments

3 days ago • 5 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in