r/AskComputerScience • • Nov 23 '15

Do computers make calculation errors?

If computers can make billions of calculations per second, is there an expected calculation error rate they make? If so, is there some sort of correction process? If the calculations are really just tiny jolts of electricity going through logic gates, is there ever chance for an error? If I give excel 100,000 cells to perform a calculation on, is it possible for one of the calculations to be incorrect mathematically?

Thank you.

30 Upvotes

11 comments sorted by

View all comments

1

u/yendrdd Nov 24 '15

In perfect conditions, I computer will do exactly what you tell it to. So those 100k Excel calculations will come out how you expect them to if you setup your algorithms correctly.

However, there is still the very, very, very small chance that a calculation will completely go out the window. And if it does, there's usually redundancy checks in place to prevent that error from totally screwing up your application.

The likelihood of you screwing up is greater than a computer that's in perfect working condition screwing up.

1

u/NewAnimal Nov 24 '15

it took me a minute to realize why you learn about mathematical induction in intro compsci math classes. given everything else is stable (hardware/algorithm,etc) your "loop" with 1 million loops should always work given your algorithm follows mathematical induction.