calculator challenges

Series: blog

While I had my fair experience with IEEE754 floating point arithmetic, I lack experience with exact calculation (aside some bignum).

In theory one can calculate symbolic, but this is often resource intensive and an overkill.

I liked Chad Nauseams calculator app write-up about Hans-J. Boehms approach for a calculator which is (numerical) correct and provides feedback if there is an exact or approximate result, most of the time.