Topic 1e
Numerical "problems"
Prior to Class
By the end of this topic students should be able to:
- Explain overflow errors.
- Explain truncation (round-off) errors.
- Discuss situations where inexactness of computer calculations matter (and situations where it doesn't matter) explaining the source of the inexactness.
Assigned Reading
- Truncation Errors - pp 66-68
- Overflow Errors - pp 59-60
In class
Discussion
Let's walk through this idea for a bit.
Checking for Understanding
- Which of these two error types is caused by a limit in the number of bits at the low end of the bit string?
- Which of these two error types is caused by a limit in the number of bits at the high end of the bit string?
- Which of these two error types is most likely to occur when we add two bit strings together?
- Which of these two error types is most likely to occur when we attempt to encode a number like PI into binary?
- Which of these two error types is most likely to occur when we store decimal (base 10) numbers like money values in a binary encoding?
Extra Help
- Dr. Schafer explains how computers can "make mistakes" - different kinds of errors in the computer
- The answers to the previous questions.