NSV 2016: Numerical Software Verification pp 47-51 | Cite as
Computing a Correct and Tight Rounding Error Bound Using Rounding-to-Nearest
Abstract
When a floating-point computation is done, it is most of the time incorrect. The rounding error can be bounded by folklore formulas, such as \(\varepsilon |x|\) or \(\varepsilon |{\circ }(x)|\). This gets more complicated when underflow is taken into account as an absolute term must be considered. Now, let us compute this error bound in practice. A common method is to use a directed rounding in order to be sure to get an over-approximation of this error bound. This article describes an algorithm that computes a correct bound using only rounding to nearest, therefore without requiring a costly change of the rounding mode. This is formally proved using the Coq formal proof assistant to increase the trust in this algorithm.
Keywords
Proof Assistant Processor Function Machine Epsilon Directed Rounding Small Normal NumberReferences
- 1.Boldo, S.: Deductive formal verification: how to make your floating-point programs behave. Thèse d’habilitation, Université Paris-Sud, October 2014Google Scholar
- 2.Boldo, S., Melquiond, G.: Flocq: a unified library for proving floating-point algorithms in Coq. In: Antelo, E., Hough, D., Ienne, P. (eds.) 20th IEEE Symposium on Computer Arithmetic, Tübingen, Germany, pp. 243–252 (2011)Google Scholar
- 3.Goldberg, D.: What every computer scientist should know about floating-point arithmetic. ACM Comput. Surv. 23(1), 5–48 (1991)CrossRefGoogle Scholar
- 4.Higham, N.J.: Accuracy and Stability of Numerical Algorithms, 2nd edn. SIAM (2002)Google Scholar
- 5.Microprocessor Standards Committee: IEEE Standard for Floating-Point Arithmetic. IEEE Std. 754-2008, pp. 1–58, August 2008Google Scholar
- 6.Muller, J.-M., Brisebarre, N., de Dinechin, F., Jeannerod, C.-P., Lefèvre, V., Melquiond, G., Revol, N., Stehlé, D., Torres, S.: Handbook of Floating-Point Arithmetic. Birkhäuser, Boston (2010)CrossRefMATHGoogle Scholar
- 7.Rump, S.M.: Fast and parallel interval arithmetic. BIT Numer. Math. 39(3), 534–554 (1999)MathSciNetCrossRefMATHGoogle Scholar