Math 2.0

Numerical analysis Definition

Round-off error

Builds on RoundingFloating-point arithmeticMachine epsilon

Definition

Let FF be a set of floating-point numbers and let fl ⁣:ℝ→F\mathrm{fl} \colon \R \to F be a rounding. The round-off error of representing x∈ℝx \in \R is fl(x)−x\mathrm{fl}(x) - x, and for x≠0x \ne 0 its relative round-off error is (fl(x)−x)/x(\mathrm{fl}(x) - x)/x. Let an algorithm compute y=f(x)y = f(x) in exact real arithmetic, and let it return y^\hat y when each operation is done in floating-point arithmetic. Then the round-off error of the computation is y^−y\hat y - y.

Remarks

Example: with base 1010, precision 33 and rounding to nearest, fl(2/3)=0.667\mathrm{fl}(2/3) = 0.667, so the round-off error is 0.667−2/3=1/30000.667 - 2/3 = 1/3000 and the relative round-off error is 1/2000=0.00051/2000 = 0.0005. This is within the unit roundoff u=12⋅10−2u = \tfrac12 \cdot 10^{-2} of the system. Non-example: replacing e=∑k≥01/k!e = \sum_{k \ge 0} 1/k! by ∑k=051/k!\sum_{k=0}^{5} 1/k! in exact arithmetic gives an error, but it is a truncation error, not a round-off error. If xx lies in the range of normalized numbers and fl\mathrm{fl} rounds to nearest, then ∣fl(x)−x∣≤u∣x∣\abs{\mathrm{fl}(x) - x} \le u \abs{x}, where u=12β1−pu = \tfrac12 \beta^{1-p} is the unit roundoff, see machine epsilon.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Floating-point arithmetic concept
  2. Machine epsilon concept
  3. Rounding concept
  4. Round-off error definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Round-off_error
About this page
TagPA1B7DJ0C4
URIm2://PA1B7DJ0C4
Kinddefinition
WritingW0 stub
MSC65G50
DefinesRound-off error
UsesRounding, Floating-point arithmetic, Machine epsilon

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.