A note on Dekker’s FastTwoSum algorithm

Marko Lange*, Shin’ichi Oishi


研究成果: Article査読

1 被引用数 (Scopus)


More than 45 years ago, Dekker proved that it is possible to evaluate the exact error of a floating-point sum with only two additional floating-point operations, provided certain conditions are met. Today the respective algorithm for transforming a sum into its floating-point approximation and the corresponding error is widely referred to as FastTwoSum. Besides some assumptions on the floating-point system itself—all of which are satisfied by any binary IEEE 754 standard conform arithmetic, the main practical limitation of FastTwoSum is that the summands have to be ordered according to their exponents. In most preceding applications of FastTwoSum, however, a more stringent condition is used, namely that the summands have to be sorted according to their absolute value. In remembrance of Dekker’s work, this note reminds the original assumptions for an error-free transformation viaFastTwoSum. Moreover, we generalize the conditions for arbitrary bases and discuss a possible modification of the FastTwoSum algorithm to extend its applicability even further. Subsequently, a range of programs exploiting the wider applicability is presented. This comprises the OnlineExactSum algorithm by Zhu and Hayes, an error-free transformation from a product of three floating-point numbers to a sum of the same number of addends, and an algorithm for accurate summation proposed by Demmel and Hida.

ジャーナルNumerische Mathematik
出版ステータスPublished - 2020 6月 1

ASJC Scopus subject areas

  • 計算数学
  • 応用数学


「A note on Dekker’s FastTwoSum algorithm」の研究トピックを掘り下げます。これらがまとまってユニークなフィンガープリントを構成します。