Exploring Rounding Errors in Matlab Using Extended Precision

Abstract We describe a simple package of Matlab programs which implements an extended-precision class in Matlab. We give some examples of how this class can be used to demonstrate the effects of rounding errors and truncation errors in scientific computing. The package is based on a representation called Double-Double, which represents each floating-point real as an unevalu- ated sum of IEEE double-precision floating point numbers. This allows Matlab computations that are accurate to 30 decimal digits. The data structure, basic arithmetic and elementary functions are implemented as a Matlab class, entirely using the Matlab programming language.