イントロのイントロ
この文書はMathlogと別の場所に投げるつもりで書いていたので、以降はすべて英文になっています。そのうち日本語版も用意できたらなあ。
Introduction
Affine arithmetic is a variant of interval arithmetic that takes into account the correlation between variables.
Here is an extreme example. In the case of interval arithmetic, will not be as long as has a positive diameter. This is because “” in interval arithmetic computes the following set:
In the formula, and move independently on their domain. Affine arithmetic reduces such overestimation by accounting for correlations among variables.
Definition
An affine form is a polynomial of degree zero or one, consisting of indeterminates called noise symbols :
where each is a scalar or vector (not an interval). The range of is defined as follows:
Let be a mathematical function. In this document, we call an A-extension of if the map satisfies the following conditions.
- If consists of noise symbols, then consists of noise symbols, where is an appropriate non-negative integer.
- For each , there exists such that .
The composition of A-extensions is an A-extension of the composite function by definition. In addition, the inclusion
holds for . These properties allow affine arithmetic to be used to evaluate the range of a function if numerically computable A-extensions can be defined for elementary operations.
Well-known A-extensions
For simplicity, We ignore rounding errors caused by floating-point operations in this section.
The A-extension of addition, subtraction, and constant multiplication is obvious; it is just ordinary polynomial arithmetic.
The A-extension of multiplication is somewhat nontrivial. Let , be scalar-valued affine forms consisting of . Then
is an A-extension of (Comba & Stolfi, 1993). Note that in this formula, includes the new noise symbol . The range of nonlinear operations is enclosed by appending a new noise symbol in this way.
The A-extension of division is usually defined as the product of and , the A-extension of . We can define as (Miyajima & Kashiwagi, 2014)
where , , , , and are defined as follows.
- . If , we can not define .
- if ; otherwise .
- , .
Treating rounding errors
The simplest method of treating rounding errors is to store rounding errors in noise symbols. Let be the A-extension of the scalar-valued function . If consists of noise symbols , assume that consists of , strictly greater than noise symbols. Since the noise symbols newly appended by are not related to other affine forms, we can assume that their coefficients are non-negative. Let
where and each is a scalar. If we can compute the approximation and error bound such that
for each , then we obtain the following computable A-extension:
The above explanation may seem difficult, but its meaning is simple. First, we compute the A-extension in interval arithmetic. Next, replace each coefficient at its midpoint and add its radius to the coefficient of . The result is then the A-extension that takes rounding errors into account. Do not forget that the last summation must be done with the rounding towards positive infinity.
Summarizing noise symbols
Complex calculations using affine arithmetic often result in so many noise symbols that the computational cost becomes impractical. In such cases, the computational cost can be reduced by summarizing noise symbols that are not so important in representing correlations between variables.
If we have an A-extension of the identity map , that reduces the number of noise symbols with non-zero coefficients, we can summarize noise symbols without compromising the correlation of affine forms. We can define such an A-extension by converting several noise symbols into a single new noise symbol. More precisely, maps a vector-valued affine form
to an another vector-valued affine form
where is the index set of noise symbols to be left behind, and is the index set of noise symbols to be summarized. An efficient way to choose noise symbols to be summarized is discussed in (Kashiwagi, 2012).
References
- J. L. D. Comba and J. Stolfi, “Affine arithmetic and its applications to computer graphics,” in Proc. VI Brazilian Symposium on Computer Graphics and Image Processing (SIBGRAPI ’93), Recife, PE, Brazil, Oct. 1993. [Online]. Available:
http://urlib.net/ibi/8JMKD3MGPBW34M/3D6UQ68
.
- M. Kashiwagi, “An algorithm to reduce the number of dummy variables in affine arithmetic,” in Proc. 15th GAMM-IMACS International Symposium on Scientific Computing Computer Arithmetic and Verified Numerical Computations (SCAN 2012), Novosibirsk, Russia, Sep. 23-29, 2012, pp. 70-71. [Online]. Available:
http://conf.nsc.ru/scan2012/scan2012_27
.
- S. Miyajima and M. Kashiwagi, “A dividing method utilizing the best multiplication in affine arithmetic,” IEICE Electronics Express, vol. 1, no. 7, pp. 176-181, Jul. 2014,
doi:10.1587/elex.1.176
.