Arbitrary Accuracy with Variable Precision Arithmetic

Similar documents
Chapter 1 Error Analysis

ON EXPLICIT INTERVAL METHODS OF ADAMS-BASHFORTH TYPE

Einbindung elastischer Körper in die Mehrkörpersimulationsbibliothek

Numerical Methods. King Saud University

Black Box Linear Algebra

Chapter 1 Mathematical Preliminaries and Error Analysis

Numerical Algorithms. IE 496 Lecture 20

ACM 106a: Lecture 1 Agenda

Optimization of Rational Approximations by Continued Fractions

On the existence of an eigenvalue below the essential spectrum

Exponential Functions Dr. Laura J. Pyzdrowski

A NOTE ON CHECKING REGULARITY OF INTERVAL MATRICES

Higher order derivatives of the inverse function

Geometric Series Bounds for the Local Errors of Taylor Methods for Linear n-th Order ODEs

Parallel Iterations for Cholesky and Rohn s Methods for Solving over Determined Linear Interval Systems

Verified Calculation of the Nodes and Weights for Gaussian Quadrature Formulas

15.081J/6.251J Introduction to Mathematical Programming. Lecture 18: The Ellipsoid method

Validating an A Priori Enclosure Using. High-Order Taylor Series. George F. Corliss and Robert Rihm. Abstract

Interval Arithmetic An Elementary Introduction and Successful Applications

correlated to the Washington D.C. Public Schools Learning Standards Algebra II

Introduction to Finite Di erence Methods

Die Grundlehren der mathematischen Wissenschaften

ODEs and Redefining the Concept of Elementary Functions

Nonhomogeneous Linear Differential Equations with Constant Coefficients - (3.4) Method of Undetermined Coefficients

.' : Topics in. Interval Analysis EDITED BY E. HANSEN OX+ORD AT THE CLARENDON PRESS

AIMS Exercise Set # 1

How do computers represent numbers?

CONTROLLABILITY AND OBSERVABILITY OF 2-D SYSTEMS. Klamka J. Institute of Automatic Control, Technical University, Gliwice, Poland

THE RELATIVE SIZES OF SUMSETS AND DIFFERENCE SETS. Merlijn Staps Department of Mathematics, Utrecht University, Utrecht, The Netherlands

I. Content Standard: Number, Number Sense and Operations Standard

LINEAR INTERVAL INEQUALITIES

Fast matrix algebra for dense matrices with rank-deficient off-diagonal blocks

IMPLICIT INTERVAL MULTISTEP METHODS FOR SOLVING THE INITIAL VALUE PROBLEM

Compute the behavior of reality even if it is impossible to observe the processes (for example a black hole in astrophysics).

Mathematics for Engineers. Numerical mathematics

COMPUTATIONAL METHODS AND ALGORITHMS Vol. I - Numerical Analysis and Methods for Ordinary Differential Equations - N.N. Kalitkin, S.S.

Lecture 2. Fundamentals of the Analysis of Algorithm Efficiency

Introduction to Decision Sciences Lecture 6

Eigenvalues and Eigenvectors: An Introduction

Notes on floating point number, numerical computations and pitfalls

1 ** The performance objectives highlighted in italics have been identified as core to an Algebra II course.

Prentice Hall Mathematics, Algebra Correlated to: Achieve American Diploma Project Algebra II End-of-Course Exam Content Standards

Polynomial Interpolation

SQUARE-ROOT FAMILIES FOR THE SIMULTANEOUS APPROXIMATION OF POLYNOMIAL MULTIPLE ZEROS

MATH 423 Linear Algebra II Lecture 3: Subspaces of vector spaces. Review of complex numbers. Vector space over a field.

MATH20602 Numerical Analysis 1

xvi xxiii xxvi Construction of the Real Line 2 Is Every Real Number Rational? 3 Problems Algebra of the Real Numbers 7

Discrete Projection Methods for Incompressible Fluid Flow Problems and Application to a Fluid-Structure Interaction

Generalization Of The Secant Method For Nonlinear Equations

Course of Study For Math

CHAPTER 4. Interpolation

Lecture Notes in. Edited by G. Goos and J. Hartmanis. Accurate Scientific Computations. Edited by Willard L. Miranker and Richard A.

Jim Lambers MAT 610 Summer Session Lecture 2 Notes

NUMERICAL METHODS C. Carl Gustav Jacob Jacobi 10.1 GAUSSIAN ELIMINATION WITH PARTIAL PIVOTING

SPECTRA - a Maple library for solving linear matrix inequalities in exact arithmetic

2 EBERHARD BECKER ET AL. has a real root. Thus our problem can be reduced to the problem of deciding whether or not a polynomial in one more variable

A Library of Functions

An Introduction to Differential Algebra

Register machines L2 18

INTRODUCTION TO COMPUTATIONAL MATHEMATICS

Introductions to ExpIntegralEi

NATIONAL BOARD FOR HIGHER MATHEMATICS. M. A. and M.Sc. Scholarship Test. September 24, Time Allowed: 150 Minutes Maximum Marks: 30

MATH20602 Numerical Analysis 1

x (2) k even h n=(n) + (n+% x(6) X(3), x (5) 4 x(4)- x(), x (2), Decomposition of an N-point DFT into 2 N/2-point DFT's.

Digital electronics form a class of circuitry where the ability of the electronics to process data is the primary focus.

Numerical Methods in Physics and Astrophysics

Solutions of linear ordinary differential equations in terms of special functions

Department of Electrical- and Information Technology. ETS061 Lecture 3, Verification, Validation and Input

Convergence of Rump s Method for Inverting Arbitrarily Ill-Conditioned Matrices

Calculator Review. Ti-30xs Multiview Calculator. Name: Date: Session:

CONTENTS. Preface Preliminaries 1

JUST THE MATHS UNIT NUMBER DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) A.J.Hobson

Inverse interval matrix: A survey

Algebra II Learning Targets

Use estimation strategies reasonably and fluently while integrating content from each of the other strands. PO 1. Recognize the limitations of

On the Diagonal Approximation of Full Matrices

Equations and Inequalities

ONE- AND TWO-STAGE IMPLICIT INTERVAL METHODS OF RUNGE-KUTTA TYPE

Algebra I. CORE TOPICS (Key Concepts & Real World Context) UNIT TITLE

Lecture 1 - Preliminaries

Rational Exponents. Polynomial function of degree n: with leading coefficient,, with maximum number of turning points is given by (n-1)

Applied Mathematics &Optimization

A New Method for Real Root Isolation of Univariate

Algebra 2 Standards. Essential Standards:

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

Mathematical Models with Maple

NATIONAL BOARD FOR HIGHER MATHEMATICS. M. A. and M.Sc. Scholarship Test. September 22, Time Allowed: 150 Minutes Maximum Marks: 30

Chapter 1: Introduction and mathematical preliminaries

Relations and Functions

Final Exam. 1 True or False (15 Points)

ECE 204 Numerical Methods for Computer Engineers MIDTERM EXAMINATION /8:00-9:30

1 Piecewise Cubic Interpolation

CSL361 Problem set 4: Basic linear algebra

Math 370 Semester Review Name

Arizona Mathematics Standards Articulated by Grade Level (2008) for College Work Readiness (Grades 11 and 12)

1.2 Finite Precision Arithmetic

Institut für Mathematik

EXPLORE Score 9 th Grade. English College Algebra Mathematics Social Sciences Reading

Methods for Solving Linear Systems Part 2

A note on the products of the terms of linear recurrences

Transcription:

Arbitrary Accuracy with Variable Precision Arithmetic Fritz Kruckeberg Gesellschaft fur Mathematik und Datenverarbeitung mbh (GMD) Summary For the calculation of interval-solutions Y including the true solution y of a given problem we need not only that!ley holds. Furthermore we are interested in the value of span(y). So we should get that for an a priori and arbitrarily given bound > 0 the calculation yields that the error remains below or that span(y) < e. It is possible to realize span(y) < e for arbitrary > 0 by using an intervalarithmetic with variable word length within a three-layered methodology, including validation/verification of the solution. The three-layered methodology consists of Computer algebra procedures, the numerical algorithm, an interval arithmetic with variable and controllable word length. Examples are given in the domain of linear equations and ordinary differential equations (initial value problems). 1. General Aspects For the calculation of interval-solutions Y including the true solution 1/ of a given problem we need not only that 1/EY holds. Furthermore we are interested in the value of span(y). So we should get that for an a priori and arbitrarily given bound e > 0 the calculation yields that the error remains below or that span(y) < e. (1) It is possible to realize (1) for arbitrary e > 0 by using a combination of some methods that are described in this paper. H we realize (1), a next level of Interval Mathematics is reached: in addition to the inclusion relation 1/EY the 'quality' e can be fulfilled in a way, that the result is better (but not too much better) than e. This means that the amount of computation can be restricted in dependency on the quality e which is wanted. But how such flexibility may be reached? 2. Interval-arithemetic with variable word length The condition (1) needs flexibility in two directions: to be accurate enough if necessary and to be rough enough if possible. By introducing an interval-arithmetic with variable word length this flexibility can be arrived. For this reason we have defined a special interval-arithmetic with variable word length on a decimal base b = 10 4 with a fixed point architecture. Principally it would be possible to use a floating point arithmetic with variable mantissa length. The restriction to a fixed point arithmetic with variable word length is not a principal restriction. The used interval-arithmetic was realized by FORTRAN subroutines. These subroutines leads to the four basic operations +, -, *, [, The result of each operation leads to a new fixed point expression, but with a longer word length if needed (to save all digits of the result). IT the word length is growing more than needed an interval rounding can be executed to an arbitrary number of digits (depending on the precision needed).

96 For these operations some additional parameters are stored at the end of the fixed point word. The parameters contain the number of leading digits on the left side of the decimal point and the number of digits needed after the decimal point. Figure 1 explains the architecture of such a fixed point word: Figure 1 Ci are digits with -(10 4-1) ~ C ~ +(10 4-1), each digit must be interpreted as an integer (with a sign ±). m = the number of significant digits after the decimal point, ±n = the number of significant digits on the left side of the decimal point, (if n < 0, n denotes the number of zeros after the decimal point). The minimal value z of such a fixed point word is then defined by n-l Z = L Ci 10 4i i=-m To restrict the amount of computation the values of m and n are limited by 0~m~20-19 s n s 20 but the limits are not fixed, they can be varied without changing the subroutines. The interval-arithmetic with variable word length uses a pair of such words (with variable parameters m and n). In consistency with this variable base subroutines for a set of elementary functions are written (sine, cosine, natural logarithm, exponential function). For example it is possible to calculate in such a way that Y := sinz (Y, Z are intervals) (2) span(y) < e for an arbitrarily given e > 0 if span(z) is small enough to realize (2). The amount of computation time to calculate such 'variable' subroutines as sine depends on the value of e. H e is smaller the calculation time is longer. It is not easy to write such subroutines but they are needed to get the flexibility that is wanted. 3. The 3 Levels of computations By introducing an interval-arithmetic with variable word length only the lowest level I of a concept of (see Figure 2) computation is realized. We have to control the variable word length in a dynamic way during the computation time by the numerical methods that are used. So the numerical methods should contain control parameters for the control of word length. A control parameter of 'the given method may be for example the step size h of a numerical integration method. H the step size h is smaller the word length should be longer. The numerical methods are placed at the level II of our 3-level diagram. Computer-algebra-systems belongs to the level III. The interconnection of all three levels is described in the following diagram (Figure 2):

97 Now it is possible to realize (1) for given problems belonging to some problem classes: Computeralgebra-systems are used for formal computation to avoid rounding errors as long as possible or to find out well conditioned domains for the application of numerical methods at level II. Between the numerical methods and the basic operations at level I exist a control feedback to determine the word length (dynamically) or to determine the number of iterations (or other parameters) at level II. In a similiar way there will be a control feedback between level II and level I (the number of higher order derivatives of a given function at level I may be connected with the number of iterations that are needed at level II). By using such a 3-level-control structure several examples for different problem classes are calculated by the author and some cooperating persons [Demmel, Leisen, Pascoletti]. THE 3 LEVELS OF WORK PROCEDURES PROCESS-CONTROL LEVEL OF SYMBOLIC COMPUTATION COMPUTER-ALGEBRA-SYSTEMS AND REDUMA LEVEL OF NUMERICAL METHODS NUMERICAL METHODS VERIFICATION OF RESULTS LEVEL OF ARITHMETIC OPERATIONS DYNAMIC INTERVAL ARITHMETIC ARITHMETIC WITH VARIABLE WORD LENGTH Figure 2 4. Examples 4.1 Initial value problems for ordinary differential equations The initial value problem y' f(x, y), x E[g, a] EII(IR), YEIR" is to be solved for all values x with 8, and the true solution y(x) should be included in a stepwise interval polynomial Y(x) so that and the condition Y(X)EY(X) f or all x with g:=; x s a (3)

98 span(y(x)) < e (4) holds for an arbitrarily a priori given e > o. We now give a general description of our method [ see Leisen, Kruckeberg]. To construct a solution for this problem the functions I(x, y) are to be described in the form of a formal expression similar to expressions that are used in Computer-algebra. Then it is possible to calculate the derivatives of the functions I(x, y) in a formal way by recursive methods that are typical for Computer-algebra routines. The formal calculation of derivatives is a typical process within level III of Figure 2. The stepwise integration starts with and leads to a sequence of points with a variable step size hi. H it is possible to include the solution y(xi-l) in an interval vector[ui-lj then we have to realize the integration from Xi-l to Xi so that the calculated interval vektor [Ui includes Y(Xi). The integration step from Xi-l to Xi is shown in Figure 3. Y, [Ui-1] --r--------------r--------~x Figure. 3 To held condition (4) it is necessary to control the step size h. But h is only one parameter to contol the precision. Annother parameter is the degree 8 of the highest derivative of 1(z, y) that is used in the taylor evaluation for the integration steps. But the parameters h and 8 are not sufficient to fulfill condition (4). We also need a variable word length (that means we have to control m). H we use a control procedure for all three parameters h step size

99 s degree of derivation m word length of interval-arithmetic then it is possible to fulfill condition (4). Many examples are calculated [Kriickeberg, Leisen] with good results. Examples For a linear system of differential equations,!/1,!!/1!/2!/1(0) 2!/2, _1!/1 + 2!/2 +!/2(0) -6!/s 1111 + 112 +!/s(o) o and two different conditions (4) with and E:2 = 10-10 the integration was executed. Figure 4 shows the results. For the E: - used. denotes the deviation from the true solution. IY- III axis a logarithmical scale is LINEAR SYSTEM OF DIFFERENTIAL EQUATIONS _10-50 /E1 OIT------------------=- o N o ~ ~.-r- r-., r-r_~ r-,....-r r,.-~_,...-~. '0.00 0.16 0.32 0..48 0.6" 0.80 0.96 1-12 X-RXIS Figure 4

100 Figure 4 shows the possibility to control the integration in such a way that condition (4) is fulfilled. The values of el, e2 for practical use are extremely small, but it should be explained that variable word length arithmetic is powerful enough to fulfill such conditions. The method was also tested for several nonlinear systems of differential equations. Further work is to be done for other problems in the domain of differential equations, specially for boundary value problems. 4.2 Systems of linear equations H a system of linear equations is given then we ask for an interval vector X so that and Ax = b (5) XEX span(x) < e (6) is fulfilled for an arbitrarily given e > o. To solve this problem we have constructed a procedure 'that includes a control process for the word length. By [Demmel, Kriickeberg] such a procedure was constructed and tested. In some cases only integer solutions of (5) are of interest. Then it is sufficient to take e = 0.5 and to control the word length in such a way that the result is not much better than e. The constructed algorithm uses only as much precision as needed to achieve (6). Examples To test our algorithm we tried to invert Hilbert matrices scaled to have integer entries. For Hilbert matrices of the order 10, 11, 12, 13 it was easy to calculate an interval vector solution X with span(x) < 10-9 in such a way that the algorithm adjust its own parameters to minimize computation time. It is obviously that the needed word length (controlled by the algorithm) depends on the condition of the matrix. In the case of linear equation only level II and level I of Figure 2 are used. But sometimes it may be of interest to perform some formal transformations (level III) before the numerical algorithm is started. 5. Consequences It seems to be realistic to follow the general aspects of chapter 1 and to fulfill condition (1). Then a next level of Interval Mathematics is reached and an economic principle is introduced: to minimize computation time in relation to the given e > o. The including of Computer-algebra (level III of Figure 2) seems to be necessary in many cases of analytic problems to have a better chance for controlling the numerical algorithm at level II. Hopefully several new methods will be constructed to solve problems of applied mathematics (and of Interval Mathematics) at this level of Interval Mathematics. The new methods will contain several parameters at the level I, II and III. So it may be problematic to realize an automatic control of all parameters by feedback loops between the levels I, II and III, so that condition (1) is fulfilled. For this reason some additional feedback is needed between the user and the computer: expert system are expected to be useful to support such a feedback between the user and the computation process.

101 REFERENCES Demmel J W, Kruckeberg F (1985) An Interval Algorithm for Solving of Linear Equations to Prespecified Accuracy. Computing 34: 117-129. Krier N, Spelluci P (1975) Untersuchungen der Grenzgenauigkeit von Algorithmen zur Auflosung linearer Gleichungssysteme mit Fehlererfassung. In: Interval Mathematics, Lecture Notes in Computer Science 29: 288-297 ed. by Nickel K, Springer Verlag, Berlin Heidelberg, New York. Kruckeberg F, Leisen R (1985) Solving Initial Value Problems of Ordinary Differential Equations to Arbitrary Accuracy with Variable Precision Arithmetic. In: Proceedings of the 11th IMACS World Congress on System Simulation and Scientific Computation: 111-114 ed. by Wahlstrom B, Henriksen R, Sundby N P, Oslo, Norway. Leisen R (1985) Zur Erzielung variabel vorgebbarer FehlereinschlieBungen fur gewohnliche Differentialgleichungen mit Anfangswertmengen mittels dynamisch steuerbarer Arithmetik. Diplomarbeit, Universitat Bonn. Pascoletti K H (1982) Ein intervallanalytisches Iterationsverfahren zur Losung von linearen Gleichungssystemen mit mehrparametriger Verfahrenssteuerung. Diplomarbeit, Universltat Bonn. Prof. Dr. Fritz Kruckeberg Gesellschaft fur Mathematik und Datenverarbeitung mbh (GMD) Postfach 1240, Schlof Birlinghoven, D-5205 St. Augustin