The relative accuracy of (x plus y) * (x-y)

被引:1
|
作者
Jeannerod, Claude-Pierre [1 ]
机构
[1] Univ Lyon, INRIA, CNRS, ENS Lyon,Univ Claude Bernard Lyon 1,LIP UMR 5668, F-69007 Lyon, France
关键词
IEEE floating-point arithmetic; Rounding error; Fine-grained accuracy analysis; Provably-sharp bound;
D O I
10.1016/j.cam.2019.112613
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
We consider the relative accuracy of evaluating (x + y)(x - y) in IEEE floating-point arithmetic, when x and y are two floating-point numbers and rounding is to nearest. This expression can be used, for example, as an efficient cancellation -free alternative to x(2) - y(2) and (at least in the absence of underflow and overflow) is well known to have low relative error, namely, at most about 3u with u denoting the unit roundoff. In this paper we propose to complement this traditional analysis with a finer-grained one, aimed at improving and assessing the quality of that bound. Specifically, we show that if the tie-breaking rule is to away then the bound 3u is asymptotically optimal (as the precision tends to infinity). In contrast, if the tie-breaking rule is to even, we show that asymptotically optimal bounds are now 2.25u for base two and 2u for larger bases, such as base ten. In each case, asymptotic optimality is obtained by the explicit construction of a certificate, that is, some floating-point input (x, y) parametrized by u and such that the error of the associated result is equivalent to the error bound as u tends to zero. We conclude with comments on how (x + y)(x - y) compares with x(2) in the presence of floating-point arithmetic, in particular showing cases where the computed value of (x + y)(x - y) exceeds that of x(2). (C) 2019 Elsevier B.V. All rights reserved.
引用
收藏
页数:13
相关论文
共 50 条
  • [41] CHONDRODYSPLASIA PUNCTATA WITH X-Y TRANSLOCATION
    AGEMATSU, K
    KOIKE, K
    MOROSAWA, H
    NAKAHORI, Y
    NAKAGOME, Y
    AKABANE, T
    [J]. HUMAN GENETICS, 1988, 80 (01) : 105 - 107
  • [42] Linear Motor X-Y Base
    不详
    [J]. MANUFACTURING ENGINEERING, 2008, 141 (06): : 36 - 37
  • [43] X-Y PLOTTER WORKS BACKWARDS
    LAUFFER, WD
    [J]. DESIGN NEWS, 1973, 28 (07) : 78 - 78
  • [44] ANALYSIS OF X-Y TRANSLOCATION CHROMOSOMES
    FAED, MJW
    BATSONE, PJ
    MADLOM, H
    BOXER, M
    [J]. AMERICAN JOURNAL OF HUMAN GENETICS, 1991, 49 (04) : 262 - 262
  • [45] X-Y记录仪
    董世章
    [J]. 中国仪器仪表, 1981, (01) : 42 - 42
  • [46] LINEAR MOTORS X-Y POSITION
    VOLPE, GT
    [J]. CONTROL ENGINEERING, 1982, 29 (07) : 136 - &
  • [47] NOTE ON THE KERNEL - EXP(-/X-Y/)
    POLLARD, H
    [J]. QUARTERLY OF APPLIED MATHEMATICS, 1950, 7 (04) : 473 - 473
  • [48] X-Y ADDRESSABLE ELECTROPHORETIC DISPLAY
    SINGER, B
    DALISA, AL
    [J]. PROCEEDINGS OF THE SID, 1977, 18 (3-4): : 255 - 266
  • [49] Extending the scope of X-Y systems
    不详
    [J]. INDUSTRIAL ROBOT-AN INTERNATIONAL JOURNAL, 1996, 23 (03) : 42 - 43
  • [50] AN X-Y POSITION SENSITIVE DETECTOR
    KALBITZER, S
    BADER, R
    MELZER, W
    STUMPFI, W
    [J]. NUCLEAR INSTRUMENTS & METHODS, 1967, 54 (02): : 323 - +