Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At the risk of coming across as being a spoilsport, I think when someone says "anyone can write a calculator app", they just mean an app that simulates a pocket calculator (which is indeed pretty easy) as opposed to one which always gives precisely the right answer (which is indeed impossible). Also, you can avoid the most embarrassing errors just by rearranging the terms to do cancellation where possible, e.g. sqrt(2) * 3 * sqrt(2) is absolutely precisely 6, not 6 within some degree of approximation.


Pocket calculators are not using 32 bit floating point math.


In fact, even cheap no-name calculators are using BCD (binary-coded decimal) instead of "normal" representation of numbers.


> as opposed to one which always gives precisely the right answer (which is indeed impossible)

Per the article, it's completely possible. Frankly I'd say they found the obvious solution, the one that any decent programmer would find for that problem.


> Frankly I'd say they found the obvious solution, the one that any decent programmer would find for that problem.

That statement seems to belittle the amount of effort and thought described in the article. And wildly contradicts my experience.


It... really doesn't seem like a lot of effort and thought. I feel like anyone who's implemented a command algebra for anything is already halfway there.


I don't know what a command algebra is, for example.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: