Module 2 Summary
Thomas J. Kennedy
Contents:
1 Objectives
Having completed this module students are now prepared to:
- Discuss the impact of finite precision on machine representation of floating-point values.
- Apply mathematical analysis to examine (i.e., quantify) the magnitudes that can be represented with a finite number of mantissa and exponent bits.
- Compare the error that arises in finite representation using the well known absolute error and relative error formulae.
- Explain the difference between absolute and relative error, and discuss how absolute and relative error are mathematically linked.
2 Questions to Consider
- Why do floating point operations often yield incorrect results, e.g.,
double x = (1.0 / 3.0) + (1.0 / 3.0) + (1.0 / 3.0);
? - How are floating point numbers represented?
- How are octal and hexadecimal shorthand for binary?
- What is the normalization constraint?