Download Excerpted from Rounding Errors in Algebraic Processes | CS 6210 and more Study notes Computer Science in PDF only on Docsity!
J & it BI) "3 g un 4 Aigeorare Processes" puye bg (2mm C14 EB < (142m (24.2) >and although the computed value will depend on the order in which the multiplications and divisions are performed, the bounds are again indepen- dent of that order. The computed value has a low relative error for any reasonable values of a and m. itd 4 25. For extended sequences of additions it is no longer true that the “:, computed value necessarily has a low relative error even though this was true for the sum of two numbers with the more accurate round-off rule. . In fact there is no useful bound for [fil tegt. ta tat te)! (25.2) since the floating-point sum may be zero when the true sum is not, and vice versa. (Note that we use f(x, +,+.. «+4,) to denote the computed ~ sum when additions take place in the order in which they are written.) It is still true however, that Sn = Fat age ty) Sm tt th where each xj differs from x, by a factor which is close to unity. We define the quantities s, recursively by the relations =m (25.2) 5, LK +%) (Sate) (146) (25.3) le] <2. (25.4) Combining these equations, we have Sq = (Lt) + w(t ye) +... + xa(l tan) (25.5) 14 = (L+e)(l+e)...(+e,) (25.6) Lt np = (Lte)(L+ ea). (146) (= 2, 005.0). (25.7) (1-244 < btm < (142-4 (25.8) (1-2-9 < Le LEI (2, n). (25.9) Note that «, and x, have the same factor, which is not surprising since they play identical roles. It is inconvenient that the factor associated with x, is not defined by the same formula as the others and it ie often simpler to write (a2 Ltn < (PED (Pah... m) (25.10) which is true a fortiori, Note that the bounds themselves are dependent on the order of summation, The upper bound for the error is smallest if the terms are added in order of ““inereasing absolute magnitude since then the largest factor (1+%;) is “Associated with the smallest x; Although this gives the smallest upper “bound it does not necessarily give the smallest error in practice. Consider for example the sum 1040-1025) + 10% —0-9123) + 10% —0-9663) + 10{~0+9315). If we add them in the natural order we have 17 ELrors YH i vest |