arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.03588math.NAcs.NAcs.SC
收藏

计算斜边函数的浮点算法的有效二次误差界

Effective Quadratic Error Bounds for Floating-Point Algorithms Computing the Hypotenuse Function

Jean-Michel Muller, Bruno Salvy

AI总结:

本文提出自动化浮点函数求值算法误差分析的计算机代数工具,推导含尖锐线性项的显式二次相对误差界,并用于比较五种斜边函数计算算法。

摘要:

我们提供了一些工具,以帮助自动化分析在浮点数上求值简单函数的算法的误差。目标是获得这些算法的紧相对误差界,并将其表示为单位舍入的函数。由于浮点数集合的离散性质,最大误差在本质上往往是“算术性”的,即它们的出现可能取决于中间变量二进制表示中的特定位模式,而这些模式可能只在某些精度下存在。我们关注通用的(即以精度为参数的)和解析的过估计,这些过估计仍能捕捉算法每一步所产生误差之间的相关性。利用计算机代数方法,并针对编码误差的多项式系统的特殊结构加以调整,我们得到了在单位舍入中具有线性项的界,且该项在许多情况下是尖锐的。文中给出了一个显式二次界,而不是该领域更常见的 O() 估计。这在使用低精度格式时尤为重要,而低精度格式在现代处理器中正变得越来越普遍。利用该方法,我们比较了五种计算斜边函数的算法,涵盖从基础算法到颇具挑战性的算法。

英文摘要:

We provide tools to help automate the error analysis of algorithms that evaluate simple functions over the floating-point numbers. The aim is to obtain tight relative error bounds for these algorithms, expressed as a function of the unit round-off. Due to the discrete nature of the set of floating-point numbers, the largest errors are often intrinsically "arithmetic" in the sense that their appearance may depend on specific bit patterns in the binary representations of intermediate variables, which may be present only for some precisions. We focus on generic (i.e., parameterized by the precision) and analytic over-estimations that still capture the correlations between the errors made at each step of the algorithms. Using methods from computer algebra, which we adapt to the particular structure of the polynomial systems that encode the errors, we obtain bounds with a linear term in the unit round-off that is sharp in manycases. An explicit quadratic bound is given, rather than the $O()$-estimate that is more common in this area. This is particularly important when using low precision formats, which are increasingly common in modern processors. Using this approach, we compare five algorithms for computing the hypotenuse function, ranging from elementary to quite challenging.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑