Twin-float arithmetic

被引:3
作者
Abbott, John [1 ]
机构
[1] Univ Genoa, Dipartimento Matemat, I-16146 Genoa, Italy
关键词
Heuristically guaranteed finite-precision arithmetic;
D O I
10.1016/j.jsc.2011.12.005
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present a heuristically certified form of floating-point arithmetic and its implementation in CoCoALib. This arithmetic is intended to act as a fast alternative to exact rational arithmetic, and is developed from the idea of paired floats expounded by Traverso and Zanoni (2002). As prerequisites we need a source of (pseudo-)random numbers, and an underlying floating-point arithmetic system where the user can set the precision. Twin-float arithmetic can be used only where the input data are exact, or can be obtained at high enough precision. Our arithmetic includes a total cancellation heuristic for sums and differences, and so can be used in classical algebraic algorithms such as Buchberger's algorithm. We also present a (new) algorithm for recovering an exact rational value from a twin-float, so in some cases an exact answer can be obtained from an approximate computation. The ideas presented here are implemented as a ring in CoCoALib, called RingTwinFloat, allowing them to be used easily in a wide variety of algebraic computations (including Grobner bases). (C) 2011 Elsevier Ltd. All rights reserved.
引用
收藏
页码:536 / 551
页数:16
相关论文
共 9 条
[1]  
Abbott J, 2011, COCOALIB C LIB DOING
[2]  
Gosper R.W., 1981, APPENDIX 2 CON UNPUB
[3]  
HARDY G.H., 2008, An introduction to the theory of numbers, V6th
[4]  
Kaltofen E., P ISSAC 2006, P169
[5]  
Muller J.-M., 1989, Arithmetique des ordinateurs
[6]  
Robbiano L., 2000, COMPUTATIONAL COMMUT
[7]  
Shirayanagi K., 1995, 9528 MSI CORN U
[8]  
Traverso C., 2002, ISSAC 2002. Proceedings of the 2002 International Symposium on Symbolic and Algebraic Computation, P262, DOI 10.1145/780506.780540
[9]  
Zeng Z., P ISSAC 2004, P320