A New Uncertainty-Bearing Floating-Point Arithmetic∗ Chengpu Wang 40 Grossman Street, Melville, NY 11747, USA
[email protected] Abstract A new deterministic floating-point arithmetic called precision arith- metic is developed to track precision for arithmetic calculations. It uses a novel rounding scheme to avoid the excessive rounding error propagation of conventional floating-point arithmetic. Unlike interval arithmetic, its uncertainty tracking is based on statistics and the central limit theorem, with a much tighter bounding range. Its stable rounding error distribution is approximated by a truncated Gaussian distribution. Generic standards and systematic methods for comparing uncertainty-bearing arithmetics are discussed. The precision arithmetic is found to be superior to inter- val arithmetic in both uncertainty-tracking and uncertainty-bounding for normal usages. The arithmetic code is published at: http://precisionarithm.sourceforge.net. Keywords: computer arithmetic, error analysis, interval arithmetic, multi-precision arithmetic, numerical algorithms. AMS subject classifications: 65-00 1 Introduction 1.1 Measurement Precision Except for the simplest counting, scientific and engineering measurements never give completely precise results [18, 42]. The precision of measured values ranges from an 2 4 order-of-magnitude estimation of astronomical measurements to 10− to 10− of com- 14 mon measurements to 10− of state-of-art measurements of basic physics constants [17]. In scientific and engineering measurements, the uncertainty of a measurement x usually is characterized by the sample deviation δx [18, 42, 19]. In certain cases, such as raw reading from an ideal analog-to-digital converter, the uncertainty of a ∗Submitted: March 11, 2006; Revised: various times – 2010–2012; Accepted: December 4, 2012.