Math 2.0

Numerical analysis Definition

Affine arithmetic

Builds on Interval arithmeticInterval

Definition

An affine form is an expression x^=x0+∑i=1kxiεi,\hat x = x_0 + \sum_{i=1}^{k} x_i \varepsilon_i, with real coefficients x0,…,xkx_0, \ldots, x_k and noise symbols ε1,…,εk\varepsilon_1, \ldots, \varepsilon_k. The noise symbols stand for unknown reals in [−1,1][-1, 1], shared by all affine forms of a computation. Its range is the interval [x0−r,x0+r][x_0 - r, x_0 + r] with radius r=∑i=1k∣xi∣r = \sum_{i=1}^{k} \abs{x_i}. Affine arithmetic computes with affine forms by the following rules.

  1. Affine operations are exact: x^±y^=(x0±y0)+∑(xi±yi)εi\hat x \pm \hat y = (x_0 \pm y_0) + \sum (x_i \pm y_i) \varepsilon_i and cx^+d=(cx0+d)+∑cxiεic \hat x + d = (c x_0 + d) + \sum c x_i \varepsilon_i for reals c,dc, d.
  2. A nonlinear operation gg is replaced by an affine form z^=z0+∑ziεi+zk+1εk+1\hat z = z_0 + \sum z_i \varepsilon_i + z_{k+1} \varepsilon_{k+1} with a new noise symbol εk+1\varepsilon_{k+1}. It is chosen so that g(x,y,…)∈z^g(x, y, \ldots) \in \hat z for all values of ε1,…,εk\varepsilon_1, \ldots, \varepsilon_k in [−1,1][-1, 1].
  3. For multiplication one may take x^y^=x0y0+∑i=1k(x0yi+y0xi)εi+rxry εk+1\hat x \hat y = x_0 y_0 + \sum_{i=1}^{k} (x_0 y_i + y_0 x_i) \varepsilon_i + r_x r_y \, \varepsilon_{k+1}, where rx,ryr_x, r_y are the radii of x^,y^\hat x, \hat y.

Remarks

Example: x^=2+ε1\hat x = 2 + \varepsilon_1 represents x∈[1,3]x \in [1, 3], and x^−x^=0\hat x - \hat x = 0 by rule 1, while interval arithmetic gives [1,3]−[1,3]=[−2,2][1, 3] - [1, 3] = [-2, 2]. Example: x^⋅x^=4+4ε1+ε2\hat x \cdot \hat x = 4 + 4\varepsilon_1 + \varepsilon_2 by rule 3, with range [−1,9][-1, 9], which contains the true range [1,9][1, 9] of x2x^2. Non-example: replacing x2x^2 by its tangent 4+4ε14 + 4\varepsilon_1 alone, without a new noise term, violates rule 2: at ε1=1\varepsilon_1 = 1 it gives 88, but x2=9x^2 = 9. In a computer the coefficients are rounded outward, and the rounding errors are also absorbed into a new noise term.

Reading path

To understand this page from the ground up, read these 3 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. Interval concept
  2. Interval arithmetic concept
  3. Affine arithmetic definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Affine_arithmetic
About this page
TagDJXX3X6TEQ
URIm2://DJXX3X6TEQ
Kinddefinition
WritingW0 stub
MSC65G30, 65G40
DefinesAffine arithmetic
UsesInterval arithmetic, Interval

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • 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.