Английская Википедия:Interval arithmetic

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:Multiple issues Шаблон:Use dmy dates Шаблон:Use list-defined references

Файл:Set of curves Outer approximation.png
Tolerance function (turquoise) and interval-valued approximation (red)

Interval arithmetic (also known as interval mathematics; interval analysis or interval computation) is a mathematical technique used to mitigate rounding and measurement errors in mathematical computation by computing function bounds. Numerical methods involving interval arithmetic can guarantee relatively reliable and mathematically correct results. Instead of representing a value as a single number, interval arithmetic or interval mathematics represents each value as a range of possibilities.

Mathematically, instead of working with an uncertain real-valued variable <math>x</math>, interval arithmetic works with an interval <math>[a,b]</math> that defines the range of values that <math>x</math> can have. In other words, any value of the variable <math>x</math> lies in the closed interval between <math>a</math> and <math>b</math>. A function <math>f</math>, when applied to <math>x</math>, produces an interval <math>[c,d]</math> which includes all the possible values for <math>f(x)</math> for all <math>x \in [a,b]</math>.

Interval arithmetic is suitable for a variety of purposes; the most common use is in scientific works, particularly when the calculations are handled by software, where it is used to keep track of rounding errors in calculations and of uncertainties in the knowledge of the exact values of physical and technical parameters. The latter often arise from measurement errors and tolerances for components or due to limits on computational accuracy. Interval arithmetic also helps find guaranteed solutions to equations (such as differential equations) and optimization problems.

Introduction

The main objective of interval arithmetic is to provide a simple way of calculating upper and lower bounds of a function's range in one or more variables. These endpoints are not necessarily the true supremum or infimum of a range since the precise calculation of those values can be difficult or impossible; the bounds only need to contain the function's range as a subset.

This treatment is typically limited to real intervals, so quantities in the form

<math>[a,b] = \{x \in \mathbb{R} \mid a \le x \le b\},</math>

where <math> a = {-\infty}</math> and <math> b = {\infty}</math> are allowed. With one of <math> a</math>, <math> b</math> infinite, the interval would be an unbounded interval; with both infinite, the interval would be the extended real number line. Since a real number <math>r</math> can be interpreted as the interval <math>[r,r],</math> intervals and real numbers can be freely combined.

Example

Файл:Interval BMI Simple Example.png
Body mass index for a person 1.80 m tall in relation to body weight m (in kilograms)

Consider the calculation of a person's body mass index (BMI). BMI is calculated as a person's body weight in kilograms divided by the square of their height in meters. Suppose a person uses a scale that has a precision of one kilogram, where intermediate values cannot be discerned, and the true weight is rounded to the nearest whole number. For example, 79.6 kg and 80.3 kg are indistinguishable, as the scale can only display values to the nearest kilogram. It is unlikely that when the scale reads 80 kg, the person has a weight of exactly 80.0 kg. Thus, the scale displaying 80 kg indicates a weight between 79.5 kg and 80.5 kg, or the interval <math>[79.5, 80.5)</math>.

The BMI of a man who weighs 80 kg and is 1.80m tall is approximately 24.7. A weight of 79.5 kg and the same height yields a BMI of 24.537, while a weight of 80.5 kg yields 24.846. Since the body mass is continuous and always increasing for all values within the specified weight interval, the true BMI must lie within the interval <math>[24.537, 24.846]</math>. Since the entire interval is less than 25, which is the cutoff between normal and excessive weight, it can be concluded with certainty that the man is of normal weight.

The error in this example does not affect the conclusion (normal weight), but this is not generally true. If the man were slightly heavier, the BMI's range may include the cutoff value of 25. In such a case, the scale's precision would be insufficient to make a definitive conclusion.

The range of BMI examples could be reported as <math>[24.5, 24.9]</math> since this interval is a superset of the calculated interval. The range could not, however, be reported as <math>[24.6, 24.8]</math>, as the interval does not contain possible BMI values.

Multiple intervals

Файл:Interval BMI Example.png
Body mass index for different weights in relation to height L (in meters)

Height and body weight both affect the value of the BMI. Though the example above only considered variation in weight, height is also subject to uncertainty. Height measurements in meters are usually rounded to the nearest centimeter: a recorded measurement of 1.79 meters represents a height in the interval <math>[1.785, 1.795)</math>. Since the BMI uniformly increases with respect to weight and decreases with respect to height, the error interval can be calculated by substituting the lowest and highest values of each interval, and then selecting the lowest and highest results as boundaries. The BMI must therefore exist in the interval

<math>\frac{[79.5, 80.5)}{[1.785, 1.795)^2} \subseteq [24.673, 25.266].</math>

In this case, the man may have normal weight or be overweight; the weight and height measurements were insufficiently precise to make a definitive conclusion.

Interval operators

A binary operation <math>\star</math> on two intervals, such as addition or multiplication is defined by

<math>[x_1, x_2] {\,\star\,} [y_1, y_2] = \{ x \star y \, | \, x \in [x_1, x_2] \,\land\, y \in [y_1, y_2] \}.</math>

In other words, it is the set of all possible values of <math>x \star y</math>, where <math>x</math> and <math>y</math> are in their corresponding intervals. If <math>\star</math> is monotone for each operand on the intervals, which is the case for the four basic arithmetic operations (except division when the denominator contains <math>0</math>), the extreme values occur at the endpoints of the operand intervals. Writing out all combinations, one way of stating this is

<math>[x_1, x_2] \star [y_1, y_2] = \left[ \min\{ x_1 \star y_1, x_1 \star y_2, x_2 \star y_1, x_2 \star y_2\}, \max \{x_1 \star y_1, x_1 \star y_2, x_2 \star y_1, x_2 \star y_2\} \right],</math>

provided that <math>x \star y</math> is defined for all <math>x\in [x_1, x_2]</math> and <math>y \in [y_1, y_2]</math>.

For practical applications, this can be simplified further:

  • Addition: <math display="block">[x_1, x_2] + [y_1, y_2] = [x_1+y_1, x_2+y_2]</math>
  • Subtraction: <math display="block">[x_1, x_2] - [y_1, y_2] = [x_1-y_2, x_2-y_1]</math>
  • Multiplication: <math display="block">[x_1, x_2] \cdot [y_1, y_2] = [\min \{x_1 y_1,x_1 y_2,x_2 y_1,x_2 y_2\}, \max\{x_1 y_1,x_1 y_2,x_2 y_1,x_2 y_2\}]</math>
  • Division: <math display="block">\frac{[x_1, x_2]}{[y_1, y_2]} = [x_1, x_2] \cdot \frac{1}{[y_1, y_2]},</math> where <math display="block">\begin{align}

\frac{1}{[y_1, y_2]} &= \left [\tfrac{1}{y_2}, \tfrac{1}{y_1} \right ] && \textrm{if}\;0 \notin [y_1, y_2] \\ \frac{1}{[y_1, 0]} &= \left [-\infty, \tfrac{1}{y_1} \right ] \\ \frac{1}{[0, y_2]} &= \left [\tfrac{1}{y_2}, \infty \right ] \\ \frac{1}{[y_1, y_2]} &= \left [-\infty, \tfrac{1}{y_1} \right ] \cup \left [\tfrac{1}{y_2}, \infty \right ] \subseteq [-\infty, \infty] && \textrm{if}\;0 \in (y_1, y_2) \end{align}</math>

The last case loses useful information about the exclusion of <math>(1/y_1, 1/y_2)</math>. Thus, it is common to work with <math>\left [-\infty, \tfrac{1}{y_1} \right ]</math> and <math>\left [\tfrac{1}{y_2}, \infty \right ]</math> as separate intervals. More generally, when working with discontinuous functions, it is sometimes useful to do the calculation with so-called multi-intervals of the form <math display="inline">\bigcup_{i} \left [ a_i, b_i \right ].</math> The corresponding multi-interval arithmetic maintains a set of (usually disjoint) intervals and also provides for overlapping intervals to unite.[1]

Файл:Interval multiplication.png
Multiplication of positive intervals

Interval multiplication often only requires two multiplications. If <math>x_1</math>, <math>y_1</math> are nonnegative,

<math>[x_1, x_2] \cdot [y_1, y_2] = [x_1 \cdot y_1, x_2 \cdot y_2], \qquad \text{ if } x_1, y_1 \geq 0.</math>

The multiplication can be interpreted as the area of a rectangle with varying edges. The result interval covers all possible areas, from the smallest to the largest.

With the help of these definitions, it is already possible to calculate the range of simple functions, such as <math>f(a,b,x) = a \cdot x + b.</math> For example, if <math>a = [1,2]</math>, <math>b = [5,7]</math> and <math>x = [2,3]</math>:

<math>f(a,b,x) = ([1,2] \cdot [2,3]) + [5,7] = [1 \cdot 2, 2\cdot 3] + [5,7] = [7,13].</math>

Notation

To shorten the notation of intervals, brackets can be used.

<math>[x] \equiv [x_1, x_2]</math> can be used to represent an interval. Note that in such a compact notation, <math>[x]</math> should not be confused between a single-point interval <math>[x_1, x_1]</math> and a general interval. For the set of all intervals, we can use

<math>[\R] := \left \{\, [x_1, x_2] \,|\, x_1 \leq x_2 \text{ and } x_1, x_2 \in \R \cup \{-\infty, \infty\} \right \}</math>

as an abbreviation. For a vector of intervals <math>\left([x]_1, \ldots , [x]_n \right) \in [\R]^n </math> we can use a bold font: <math>[\mathbf{x}]</math>.

Elementary functions

Файл:Value domain of monotonic function.png
Values of a monotonic function

Interval functions beyond the four basic operators may also be defined.

For monotonic functions in one variable, the range of values is simple to compute. If <math>f: \R \to \R</math> is monotonically increasing (resp. decreasing) in the interval <math>[x_1, x_2],</math> then for all <math>y_1, y_2 \in [x_1, x_2]</math> such that <math>y_1 \leq y_2,</math> <math>f(y_1)<f(y_2)</math> (resp. <math>f(y_2) < f(y_1)</math>).

The range corresponding to the interval <math>[y_1, y_2] \subseteq [x_1, x_2]</math> can be therefore calculated by applying the function to its endpoints:

<math>f([y_1, y_2]) = \left[\min \left \{f(y_1), f(y_2) \right \}, \max \left\{ f(y_1), f(y_2) \right\}\right].</math>

From this, the following basic features for interval functions can easily be defined:

  • Exponential function: <math>a^{[x_1, x_2]} = [a^{x_1},a^{x_2}]</math> for <math>a > 1,</math>
  • Logarithm: <math>\log_a [x_1, x_2] = [\log_a {x_1}, \log_a {x_2}]</math> for positive intervals <math>[x_1, x_2]</math> and <math>a>1,</math>
  • Odd powers: <math>[x_1, x_2]^n = [x_1^n,x_2^n]</math>, for odd <math>n\in \N.</math>

For even powers, the range of values being considered is important and needs to be dealt with before doing any multiplication. For example, <math>x^n</math> for <math>x \in [-1,1]</math> should produce the interval <math>[0,1]</math> when <math>n = 2, 4, 6, \ldots.</math> But if <math>[-1,1]^n</math> is taken by repeating interval multiplication of form <math>[-1,1] \cdot [-1,1] \cdot \cdots \cdot [-1,1]</math> then the result is <math>[-1,1],</math> wider than necessary.

More generally one can say that, for piecewise monotonic functions, it is sufficient to consider the endpoints <math>x_1</math>, <math>x_2</math>of an interval, together with the so-called critical points within the interval, being those points where the monotonicity of the function changes direction. For the sine and cosine functions, the critical points are at <math>\left(\tfrac{1}{2} + n\right)\pi</math> or <math>n\pi</math> for <math>n \in \Z</math>, respectively. Thus, only up to five points within an interval need to be considered, as the resulting interval is <math>[-1,1]</math> if the interval includes at least two extrema. For sine and cosine, only the endpoints need full evaluation, as the critical points lead to easily pre-calculated values—namely -1, 0, and 1.

Interval extensions of general functions

In general, it may not be easy to find such a simple description of the output interval for many functions. But it may still be possible to extend functions to interval arithmetic. If <math>f:\mathbb{R}^n \to \mathbb{R}</math> is a function from a real vector to a real number, then <math>[f]: [\mathbb{R}]^n \to [\mathbb{R}]</math> is called an interval extension of <math>f</math> if

<math>[f]([\mathbf{x}]) \supseteq \{f(\mathbf{y}) \mid \mathbf{y} \in [\mathbf{x}]\}.</math>

This definition of the interval extension does not give a precise result. For example, both <math>[f]([x_1,x_2]) = [e^{x_1}, e^{x_2}]</math> and <math>[g]([x_1,x_2]) =[{-\infty}, {\infty}]</math> are allowable extensions of the exponential function. Tighter extensions are desirable, though the relative costs of calculation and imprecision should be considered; in this case, <math>[f]</math> should be chosen as it gives the tightest possible result.

Given a real expression, its natural interval extension is achieved by using the interval extensions of each of its subexpressions, functions, and operators.

The Taylor interval extension (of degree <math>k</math> ) is a <math>k+1</math> times differentiable function <math>f</math> defined by

<math>[f]([\mathbf{x}]) := f(\mathbf{y}) + \sum_{i=1}^k\frac{1}{i!}\mathrm{D}^i f(\mathbf{y}) \cdot ([\mathbf{x}] - \mathbf{y})^i + [r]([\mathbf{x}], [\mathbf{x}], \mathbf{y}), </math>

for some <math>\mathbf{y} \in [\mathbf{x}]</math>, where <math>\mathrm{D}^i f(\mathbf{y})</math> is the <math>i</math>-th order differential of <math>f</math> at the point <math>\mathbf{y}</math> and <math>[r]</math> is an interval extension of the Taylor remainder.

<math>r(\mathbf{x}, \xi, \mathbf{y}) = \frac{1}{(k+1)!}\mathrm{D}^{k+1} f(\xi) \cdot (\mathbf{x}-\mathbf{y})^{k+1}. </math>
Файл:Meanvalue extension.png
Mean value form

The vector <math>\xi</math> lies between <math>\mathbf{x}</math> and <math>\mathbf{y}</math> with <math>\mathbf{x}, \mathbf{y} \in [\mathbf{x}]</math>, <math>\xi</math> is protected by <math>[\mathbf{x}]</math>. Usually one chooses <math>\mathbf{y}</math> to be the midpoint of the interval and uses the natural interval extension to assess the remainder.

The special case of the Taylor interval extension of degree <math>k = 0</math> is also referred to as the mean value form.

Complex interval arithmetic

An interval can be defined as a set of points within a specified distance of the center, and this definition can be extended from real numbers to complex numbers.[2] Another extension defines intervals as rectangles in the complex plane. As is the case with computing with real numbers, computing with complex numbers involves uncertain data. So, given the fact that an interval number is a real closed interval and a complex number is an ordered pair of real numbers, there is no reason to limit the application of interval arithmetic to the measure of uncertainties in computations with real numbers.[3] Interval arithmetic can thus be extended, via complex interval numbers, to determine regions of uncertainty in computing with complex numbers. One can either define complex interval arithmetic using rectangles or using disks, both with their respective advantages and disadvantages.[3]

The basic algebraic operations for real interval numbers (real closed intervals) can be extended to complex numbers. It is therefore not surprising that complex interval arithmetic is similar to, but not the same as, ordinary complex arithmetic.[3] It can be shown that, as is the case with real interval arithmetic, there is no distributivity between the addition and multiplication of complex interval numbers except for certain special cases, and inverse elements do not always exist for complex interval numbers.[3] Two other useful properties of ordinary complex arithmetic fail to hold in complex interval arithmetic: the additive and multiplicative properties, of ordinary complex conjugates, do not hold for complex interval conjugates.[3]

Interval arithmetic can be extended, in an analogous manner, to other multidimensional number systems such as quaternions and octonions, but with the expense that we have to sacrifice other useful properties of ordinary arithmetic.[3]

Interval methods

Шаблон:More citations needed section The methods of classical numerical analysis cannot be transferred one-to-one into interval-valued algorithms, as dependencies between numerical values are usually not taken into account.

Rounded interval arithmetic

Файл:Illustration of outward rounding.png
Outer bounds at different level of rounding

To work effectively in a real-life implementation, intervals must be compatible with floating point computing. The earlier operations were based on exact arithmetic, but in general fast numerical solution methods may not be available for it. The range of values of the function <math>f(x, y) = x + y</math> for <math>x \in [0.1, 0.8]</math> and <math>y \in [0.06, 0.08]</math> are for example <math>[0.16, 0.88]</math>. Where the same calculation is done with single-digit precision, the result would normally be <math>[0.2, 0.9]</math>. But <math>[0.2, 0.9] \not\supseteq [0.16, 0.88]</math>, so this approach would contradict the basic principles of interval arithmetic, as a part of the domain of <math>f([0.1, 0.8], [0.06, 0.08])</math> would be lost. Instead, the outward rounded solution <math>[0.1, 0.9]</math> is used.

The standard IEEE 754 for binary floating-point arithmetic also sets out procedures for the implementation of rounding. An IEEE 754 compliant system allows programmers to round to the nearest floating-point number; alternatives are rounding towards 0 (truncating), rounding toward positive infinity (i.e., up), or rounding towards negative infinity (i.e., down).

The required external rounding for interval arithmetic can thus be achieved by changing the rounding settings of the processor in the calculation of the upper limit (up) and lower limit (down). Alternatively, an appropriate small interval <math>[\varepsilon_1, \varepsilon_2]</math> can be added.

Dependency problem

Файл:Interval-dependence problem-front view.png
Approximate estimate of the value range

The so-called "dependency" problem is a major obstacle to the application of interval arithmetic. Although interval methods can determine the range of elementary arithmetic operations and functions very accurately, this is not always true with more complicated functions. If an interval occurs several times in a calculation using parameters, and each occurrence is taken independently, then this can lead to an unwanted expansion of the resulting intervals.

Файл:Interval-dependence problem.png
Treating each occurrence of a variable independently

As an illustration, take the function <math>f</math> defined by <math>f(x) = x^2 + x.</math> The values of this function over the interval <math>[-1, 1]</math> are <math>\left [-\tfrac{1}{4}, 2 \right ].</math> As the natural interval extension, it is calculated as:

<math>[-1, 1]^2 + [-1, 1] = [0,1] + [-1,1] = [-1,2],</math>

which is slightly larger; we have instead calculated the infimum and supremum of the function <math>h(x, y)= x^2+y</math> over <math>x, y \in [-1,1].</math> There is a better expression of <math>f</math> in which the variable <math>x</math> only appears once, namely by rewriting <math>f(x) = x^2 + x</math> as addition and squaring in the quadratic.

<math>f(x) = \left(x + \frac{1}{2}\right)^2 -\frac{1}{4}.</math>

So the suitable interval calculation is

<math>\left([-1,1] + \frac{1}{2}\right)^2 -\frac{1}{4} = \left[-\frac{1}{2}, \frac{3}{2}\right]^2 -\frac{1}{4} = \left[0, \frac{9}{4}\right] -\frac{1}{4} = \left[-\frac{1}{4},2\right]</math>

and gives the correct values.

In general, it can be shown that the exact range of values can be achieved, if each variable appears only once and if <math>f</math> is continuous inside the box. However, not every function can be rewritten this way.

Файл:Interval-wrapping effect.png
Wrapping effect

The dependency of the problem causing over-estimation of the value range can go as far as covering a large range, preventing more meaningful conclusions.

An additional increase in the range stems from the solution of areas that do not take the form of an interval vector. The solution set of the linear system

<math>\begin{cases} x = p \\ y = p \end{cases} \qquad p\in [-1,1]</math>

is precisely the line between the points <math>(-1,-1)</math> and <math>(1,1).</math> Using interval methods results in the unit square, <math>[-1,1] \times [-1,1].</math> This is known as the wrapping effect.

Linear interval systems

A linear interval system consists of a matrix interval extension <math>[\mathbf{A}] \in [\mathbb{R}]^{n\times m}</math> and an interval vector <math>[\mathbf{b}] \in [\mathbb{R}]^{n}</math>. We want the smallest cuboid <math>[\mathbf{x}] \in [\mathbb{R}]^{m}</math>, for all vectors <math>\mathbf{x} \in \mathbb{R}^{m}</math> which there is a pair <math>(\mathbf{A}, \mathbf{b})</math> with <math>\mathbf{A} \in [\mathbf{A}]</math> and <math>\mathbf{b} \in [\mathbf{b}]</math> satisfying.

<math>\mathbf{A} \cdot \mathbf{x} = \mathbf{b}</math>.

For quadratic systems – in other words, for <math>n = m</math> – there can be such an interval vector <math>[\mathbf{x}]</math>, which covers all possible solutions, found simply with the interval Gauss method. This replaces the numerical operations, in that the linear algebra method known as Gaussian elimination becomes its interval version. However, since this method uses the interval entities<math>[\mathbf{A}]</math> and <math>[\mathbf{b}]</math> repeatedly in the calculation, it can produce poor results for some problems. Hence using the result of the interval-valued Gauss only provides first rough estimates, since although it contains the entire solution set, it also has a large area outside it.

A rough solution <math>[\mathbf{x}]</math> can often be improved by an interval version of the Gauss–Seidel method. The motivation for this is that the <math>i</math>-th row of the interval extension of the linear equation.

<math>

\begin{pmatrix}

{[a_{11}]} & \cdots & {[a_{1n}]} \\
\vdots & \ddots & \vdots  \\
{[a_{n1}]} & \cdots & {[a_{nn}]}

\end{pmatrix} \cdot \begin{pmatrix} {x_1} \\ \vdots \\ {x_n} \end{pmatrix} = \begin{pmatrix} {[b_1]} \\ \vdots \\ {[b_n]} \end{pmatrix} </math> can be determined by the variable <math>x_i</math> if the division <math>1/[a_{ii}]</math> is allowed. It is therefore simultaneously.

<math>x_j \in [x_j]</math> and <math>x_j \in \frac{[b_i]- \sum\limits_{k \not= j} [a_{ik}] \cdot [x_k]}{[a_{ii}]}</math>.

So we can now replace <math>[x_j]</math> by

<math>[x_j] \cap \frac{[b_i]- \sum\limits_{k \not= j} [a_{ik}] \cdot [x_k]}{[a_{ii}]}</math>,

and so the vector <math>[\mathbf{x}]</math> by each element. Since the procedure is more efficient for a diagonally dominant matrix, instead of the system <math> [\mathbf{A}]\cdot \mathbf{x} = [\mathbf{b}]\mbox{,}</math> one can often try multiplying it by an appropriate rational matrix <math>\mathbf{M}</math> with the resulting matrix equation.

<math>(\mathbf{M}\cdot[\mathbf{A}])\cdot \mathbf{x} = \mathbf{M}\cdot[\mathbf{b}]</math>

left to solve. If one chooses, for example, <math>\mathbf{M} = \mathbf{A}^{-1}</math> for the central matrix <math>\mathbf{A} \in [\mathbf{A}]</math>, then <math>\mathbf{M} \cdot[\mathbf{A}]</math> is outer extension of the identity matrix.

These methods only work well if the widths of the intervals occurring are sufficiently small. For wider intervals, it can be useful to use an interval-linear system on finite (albeit large) real number equivalent linear systems. If all the matrices <math>\mathbf{A} \in [\mathbf{A}]</math> are invertible, it is sufficient to consider all possible combinations (upper and lower) of the endpoints occurring in the intervals. The resulting problems can be resolved using conventional numerical methods. Interval arithmetic is still used to determine rounding errors.

This is only suitable for systems of smaller dimension, since with a fully occupied <math>n \times n</math> matrix, <math>2^{n^2}</math> real matrices need to be inverted, with <math>2^n</math> vectors for the right-hand side. This approach was developed by Jiri Rohn and is still being developed.[4]

Interval Newton method

Файл:Interval Newton step.png
Reduction of the search area in the interval Newton step in "thick" functions.

An interval variant of Newton's method for finding the zeros in an interval vector <math>[\mathbf{x}]</math> can be derived from the average value extension.[5] For an unknown vector <math>\mathbf{z}\in [\mathbf{x}]</math> applied to <math>\mathbf{y}\in [\mathbf{x}]</math>, gives.

<math>f(\mathbf{z}) \in f(\mathbf{y}) + [J_f](\mathbf{[x]}) \cdot (\mathbf{z} - \mathbf{y})</math>.

For a zero <math>\mathbf{z}</math>, that is <math>f(z)=0</math>, and thus, must satisfy.

<math> f(\mathbf{y}) + [J_f](\mathbf{[x]}) \cdot (\mathbf{z} - \mathbf{y})=0 </math>.

This is equivalent to <math> \mathbf{z} \in \mathbf{y} - [J_f](\mathbf{[x]})^{-1}\cdot f(\mathbf{y})</math>. An outer estimate of <math>[J_f](\mathbf{[x]})^{-1}\cdot f(\mathbf{y}))</math> can be determined using linear methods.

In each step of the interval Newton method, an approximate starting value <math>[\mathbf{x}]\in [\mathbb{R}]^n</math> is replaced by <math>[\mathbf{x}]\cap \left(\mathbf{y} - [J_f](\mathbf{[x]})^{-1}\cdot f(\mathbf{y})\right)</math> and so the result can be improved. In contrast to traditional methods, the interval method approaches the result by containing the zeros. This guarantees that the result produces all zeros in the initial range. Conversely, it proves that no zeros of <math>f</math> were in the initial range <math>[\mathbf{x}]</math> if a Newton step produces the empty set.

The method converges on all zeros in the starting region. Division by zero can lead to the separation of distinct zeros, though the separation may not be complete; it can be complemented by the bisection method.

As an example, consider the function <math>f(x)= x^2-2</math>, the starting range <math>[x] = [-2,2]</math>, and the point <math>y= 0</math>. We then have <math> J_f(x) = 2\, x</math> and the first Newton step gives.

<math>[-2,2]\cap \left(0 - \frac{1}{2\cdot[-2,2]} (0-2)\right) = [-2,2]\cap \Big([{-\infty}, {-0.5}]\cup [{0.5}, {\infty}] \Big) = [{-2}, {-0.5}] \cup [{0.5}, {2}]</math>.

More Newton steps are used separately on <math>x\in [{-2}, {-0.5}]</math> and <math>[{0.5}, {2}]</math>. These converge to arbitrarily small intervals around <math>-\sqrt{2}</math> and <math>+\sqrt{2}</math>.

The Interval Newton method can also be used with thick functions such as <math>g(x)= x^2-[2,3]</math>, which would in any case have interval results. The result then produces intervals containing <math> \left[-\sqrt{3},-\sqrt{2} \right] \cup \left[\sqrt{2},\sqrt{3} \right]</math>.

Bisection and covers

Файл:Illustration of interval mincing.png
Rough estimate (turquoise) and improved estimates through "mincing" (red)

The various interval methods deliver conservative results as dependencies between the sizes of different interval extensions are not taken into account. However, the dependency problem becomes less significant for narrower intervals.

Covering an interval vector <math>[\mathbf{x}]</math> by smaller boxes <math>[\mathbf{x}_1], \ldots , [\mathbf{x}_k],</math> so that

<math>[\mathbf{x}] = \bigcup_{i=1}^k [\mathbf{x}_i],</math>

is then valid for the range of values.

<math>f([\mathbf{x}]) = \bigcup_{i=1}^k f([\mathbf{x}_i]).</math>

So, for the interval extensions described above the following holds:

<math>[f]([\mathbf{x}]) \supseteq \bigcup_{i=1}^k [f]([\mathbf{x}_i]).</math>

Since <math>[f]([\mathbf{x}])</math> is often a genuine superset of the right-hand side, this usually leads to an improved estimate.

Such a cover can be generated by the bisection method such as thick elements <math>[x_{i1}, x_{i2}]</math> of the interval vector <math>[\mathbf{x}] = ([x_{11}, x_{12}], \ldots, [x_{n1}, x_{n2}])</math> by splitting in the center into the two intervals <math>\left [x_{i1}, \tfrac{1}{2}(x_{i1}+x_{i2})\right ]</math> and <math>\left [ \tfrac{1}{2}(x_{i1}+x_{i2}), x_{i2} \right ].</math> If the result is still not suitable then further gradual subdivision is possible. A cover of <math>2^r</math> intervals results from <math>r</math> divisions of vector elements, substantially increasing the computation costs.

With very wide intervals, it can be helpful to split all intervals into several subintervals with a constant (and smaller) width, a method known as mincing. This then avoids the calculations for intermediate bisection steps. Both methods are only suitable for problems of low dimension.

Application

Interval arithmetic can be used in various areas (such as set inversion, motion planning, set estimation, or stability analysis) to treat estimates with no exact numerical value.[6]

Rounding error analysis

Interval arithmetic is used with error analysis, to control rounding errors arising from each calculation. The advantage of interval arithmetic is that after each operation there is an interval that reliably includes the true result. The distance between the interval boundaries gives the current calculation of rounding errors directly:

Error = <math>\mathrm{abs}(a-b)</math> for a given interval <math>[a,b]</math>.

Interval analysis adds to rather than substituting for traditional methods for error reduction, such as pivoting.

Tolerance analysis

Parameters for which no exact figures can be allocated often arise during the simulation of technical and physical processes. The production process of technical components allows certain tolerances, so some parameters fluctuate within intervals. In addition, many fundamental constants are not known precisely.[1]

If the behavior of such a system affected by tolerances satisfies, for example, <math>f(\mathbf{x}, \mathbf{p}) = 0</math>, for <math> \mathbf{p} \in [\mathbf{p}]</math> and unknown <math>\mathbf{x}</math> then the set of possible solutions.

<math>\{\mathbf{x}\,|\, \exists \mathbf{p} \in [\mathbf{p}], f(\mathbf{x}, \mathbf{p})= 0\}</math>,

can be found by interval methods. This provides an alternative to traditional propagation of error analysis. Unlike point methods, such as Monte Carlo simulation, interval arithmetic methodology ensures that no part of the solution area can be overlooked. However, the result is always a worst-case analysis for the distribution of error, as other probability-based distributions are not considered.

Fuzzy interval arithmetic

Файл:Fuzzy arithmetic.png
Approximation of the normal distribution by a sequence of intervals

Interval arithmetic can also be used with affiliation functions for fuzzy quantities as they are used in fuzzy logic. Apart from the strict statements <math>x\in [x]</math> and <math>x \not\in [x]</math>, intermediate values are also possible, to which real numbers <math>\mu \in [0,1]</math> are assigned. <math>\mu = 1</math> corresponds to definite membership while <math>\mu = 0</math> is non-membership. A distribution function assigns uncertainty, which can be understood as a further interval.

For fuzzy arithmetic[7] only a finite number of discrete affiliation stages <math>\mu_i \in [0,1]</math> are considered. The form of such a distribution for an indistinct value can then be represented by a sequence of intervals.

<math>\left[x^{(1)}\right] \supset \left[x^{(2)}\right] \supset \cdots \supset \left[x^{(k)} \right].</math>

The interval <math>\left [x^{(i)} \right ]</math> corresponds exactly to the fluctuation range for the stage <math>\mu_i.</math>

The appropriate distribution for a function <math>f(x_1, \ldots, x_n)</math> concerning indistinct values <math>x_1, \ldots, x_n</math> and the corresponding sequences.

<math>\left[x_1^{(1)} \right] \supset \cdots \supset \left[x_1^{(k)} \right], \ldots, \left[x_n^{(1)} \right] \supset \cdots \supset \left[x_n^{(k)} \right]</math>

can be approximated by the sequence.

<math>\left[y^{(1)}\right] \supset \cdots \supset \left[y^{(k)}\right],</math>

where

<math>\left[y^{(i)}\right] = f \left( \left[x_{1}^{(i)}\right], \ldots \left[x_{n}^{(i)}\right]\right)</math>

and can be calculated by interval methods. The value <math>\left[y^{(1)}\right]</math> corresponds to the result of an interval calculation.

Computer-assisted proof

Warwick Tucker used interval arithmetic in order to solve the 14th of Smale's problems, that is, to show that the Lorenz attractor is a strange attractor.[8] Thomas Hales used interval arithmetic in order to solve the Kepler conjecture.

History

Interval arithmetic is not a completely new phenomenon in mathematics; it has appeared several times under different names in the course of history. For example, Archimedes calculated lower and upper bounds 223/71 < π < 22/7 in the 3rd century BC. Actual calculation with intervals has neither been as popular as other numerical techniques nor been completely forgotten.

Rules for calculating with intervals and other subsets of the real numbers were published in a 1931 work by Rosalind Cicely Young.[9] Arithmetic work on range numbers to improve the reliability of digital systems was then published in a 1951 textbook on linear algebra by Шаблон:Ill;[10] intervals were used to measure rounding errors associated with floating-point numbers. A comprehensive paper on interval algebra in numerical analysis was published by Teruo Sunaga (1958).[11]

The birth of modern interval arithmetic was marked by the appearance of the book Interval Analysis by Ramon E. Moore in 1966.[12][13] He had the idea in spring 1958, and a year later he published an article about computer interval arithmetic.[14] Its merit was that starting with a simple principle, it provided a general method for automated error analysis, not just errors resulting from rounding.

Independently in 1956, Mieczyslaw Warmus suggested formulae for calculations with intervals,[15] though Moore found the first non-trivial applications.

In the following twenty years, German groups of researchers carried out pioneering work around Ulrich W. Kulisch[16][17] and Шаблон:Interlanguage link[18] at the University of Karlsruhe and later also at the Bergische University of Wuppertal. For example, Шаблон:Interlanguage link explored more effective implementations, while improved containment procedures for the solution set of systems of equations were due to Arnold Neumaier among others. In the 1960s, Eldon R. Hansen dealt with interval extensions for linear equations and then provided crucial contributions to global optimization, including what is now known as Hansen's method, perhaps the most widely used interval algorithm.[5] Classical methods in this often have the problem of determining the largest (or smallest) global value, but could only find a local optimum and could not find better values; Helmut Ratschek and Jon George Rokne developed branch and bound methods, which until then had only applied to integer values, by using intervals to provide applications for continuous values.

In 1988, Rudolf Lohner developed Fortran-based software for reliable solutions for initial value problems using ordinary differential equations.[19]

The journal Reliable Computing (originally Interval Computations) has been published since the 1990s, dedicated to the reliability of computer-aided computations. As lead editor, R. Baker Kearfott, in addition to his work on global optimization, has contributed significantly to the unification of notation and terminology used in interval arithmetic.[20]

In recent years work has concentrated in particular on the estimation of preimages of parameterized functions and to robust control theory by the COPRIN working group of INRIA in Sophia Antipolis in France.[21]

Шаблон:AnchorImplementations

There are many software packages that permit the development of numerical applications using interval arithmetic.[22] These are usually provided in the form of program libraries. There are also C++ and Fortran compilers that handle interval data types and suitable operations as a language extension, so interval arithmetic is supported directly.

Since 1967, Extensions for Scientific Computation (XSC) have been developed in the University of Karlsruhe for various programming languages, such as C++, Fortran, and Pascal.[23] The first platform was a Zuse Z23, for which a new interval data type with appropriate elementary operators was made available. There followed in 1976, Pascal-SC, a Pascal variant on a Zilog Z80 that it made possible to create fast, complicated routines for automated result verification. Then came the Fortran 77-based ACRITH-XSC for the System/370 architecture (FORTRAN-SC), which was later delivered by IBM. Starting from 1991 one could produce code for C compilers with Pascal-XSC; a year later the C++ class library supported C-XSC on many different computer systems. In 1997, all XSC variants were made available under the GNU General Public License. At the beginning of 2000, C-XSC 2.0 was released under the leadership of the working group for scientific computation at the Bergische University of Wuppertal to correspond to the improved C++ standard.

Another C++-class library was created in 1993 at the Hamburg University of Technology called Profil/BIAS (Programmer's Runtime Optimized Fast Interval Library, Basic Interval Arithmetic), which made the usual interval operations more user-friendly. It emphasized the efficient use of hardware, portability, and independence of a particular presentation of intervals.

The Boost collection of C++ libraries contains a template class for intervals. Its authors are aiming to have interval arithmetic in the standard C++ language.[24]

The Frink programming language has an implementation of interval arithmetic that handles arbitrary-precision numbers. Programs written in Frink can use intervals without rewriting or recompilation.

GAOL[25] is another C++ interval arithmetic library that is unique in that it offers the relational interval operators used in interval constraint programming.

The Moore library[26] is an efficient implementation of interval arithmetic in C++. It provides intervals with endpoints of arbitrary precision and is based on the concepts feature of C++.

The Julia programming language[27] has an implementation of interval arithmetics along with high-level features, such as root-finding (for both real and complex-valued functions) and interval constraint programming, via the ValidatedNumerics.jl package.[28]

In addition, computer algebra systems, such as FriCAS, Mathematica, Maple, Maxima (software)[29] and MuPAD, can handle intervals. A Matlab extension Intlab[30] builds on BLAS routines, and the Toolbox b4m makes a Profil/BIAS interface.[30][31] Moreover, the Software Euler Math Toolbox includes an interval arithmetic.

A library for the functional language OCaml was written in assembly language and C.[32]

IEEE 1788 standard

Шаблон:Anchor A standard for interval arithmetic, IEEE Std 1788-2015, has been approved in June 2015.[33] Two reference implementations are freely available.[34] These have been developed by members of the standard's working group: The libieeep1788[35] library for C++, and the interval package[36] for GNU Octave.

A minimal subset of the standard, IEEE Std 1788.1-2017, has been approved in December 2017 and published in February 2018. It should be easier to implement and may speed production of implementations.[37]

Conferences and workshops

Several international conferences or workshops take place every year in the world. The main conference is probably SCAN (International Symposium on Scientific Computing, Computer Arithmetic, and Verified Numerical Computation), but there is also SWIM (Small Workshop on Interval Methods), PPAM (International Conference on Parallel Processing and Applied Mathematics), REC (International Workshop on Reliable Engineering Computing).

See also

References

Шаблон:Reflist

Further reading

External links

Шаблон:Data types

  1. 1,0 1,1 Ошибка цитирования Неверный тег <ref>; для сносок Dreyer_2003 не указан текст
  2. Ошибка цитирования Неверный тег <ref>; для сносок Petkovic_1998 не указан текст
  3. 3,0 3,1 3,2 3,3 3,4 3,5 Ошибка цитирования Неверный тег <ref>; для сносок Dawood_2011 не указан текст
  4. Ошибка цитирования Неверный тег <ref>; для сносок Rohn не указан текст
  5. 5,0 5,1 Ошибка цитирования Неверный тег <ref>; для сносок Hansen_2004 не указан текст
  6. Ошибка цитирования Неверный тег <ref>; для сносок Jaulin_2001 не указан текст
  7. Ошибка цитирования Неверный тег <ref>; для сносок Hanss не указан текст
  8. Ошибка цитирования Неверный тег <ref>; для сносок Tucker_1999 не указан текст
  9. Ошибка цитирования Неверный тег <ref>; для сносок Young_1931 не указан текст
  10. Ошибка цитирования Неверный тег <ref>; для сносок Dwyer_1951 не указан текст
  11. Ошибка цитирования Неверный тег <ref>; для сносок Sunaga_1958 не указан текст
  12. Ошибка цитирования Неверный тег <ref>; для сносок Moore_1966 не указан текст
  13. Ошибка цитирования Неверный тег <ref>; для сносок Moore_2009 не указан текст
  14. Ошибка цитирования Неверный тег <ref>; для сносок Hansen_2001 не указан текст
  15. Ошибка цитирования Неверный тег <ref>; для сносок Warmus_2008 не указан текст
  16. Ошибка цитирования Неверный тег <ref>; для сносок Kulisch_1989 не указан текст
  17. Ошибка цитирования Неверный тег <ref>; для сносок Kulisch_1969 не указан текст
  18. Ошибка цитирования Неверный тег <ref>; для сносок Alefeld не указан текст
  19. Ошибка цитирования Неверный тег <ref>; для сносок Lohner не указан текст
  20. Ошибка цитирования Неверный тег <ref>; для сносок Kearfott не указан текст
  21. Ошибка цитирования Неверный тег <ref>; для сносок INRIA не указан текст
  22. Ошибка цитирования Неверный тег <ref>; для сносок Kreinovich не указан текст
  23. Ошибка цитирования Неверный тег <ref>; для сносок XSC_2007 не указан текст
  24. Ошибка цитирования Неверный тег <ref>; для сносок Sylvian не указан текст
  25. Ошибка цитирования Неверный тег <ref>; для сносок Gaol не указан текст
  26. Ошибка цитирования Неверный тег <ref>; для сносок Moore не указан текст
  27. Ошибка цитирования Неверный тег <ref>; для сносок Julia не указан текст
  28. Ошибка цитирования Неверный тег <ref>; для сносок Validated не указан текст
  29. Ошибка цитирования Неверный тег <ref>; для сносок RJF не указан текст
  30. 30,0 30,1 Ошибка цитирования Неверный тег <ref>; для сносок Intlab не указан текст
  31. Ошибка цитирования Неверный тег <ref>; для сносок B4M не указан текст
  32. Ошибка цитирования Неверный тег <ref>; для сносок Alliot_2012 не указан текст
  33. Ошибка цитирования Неверный тег <ref>; для сносок IEEE_2015_1788 не указан текст
  34. Ошибка цитирования Неверный тег <ref>; для сносок Revol_2015 не указан текст
  35. Ошибка цитирования Неверный тег <ref>; для сносок IEEE_P1788_C++ не указан текст
  36. Ошибка цитирования Неверный тег <ref>; для сносок Octave не указан текст
  37. Ошибка цитирования Неверный тег <ref>; для сносок IEEE_2017_1788 не указан текст