Numerical Computations in Linear Algebra. Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer.

Slides:



Advertisements
Similar presentations
2009 Spring Errors & Source of Errors SpringBIL108E Errors in Computing Several causes for malfunction in computer systems. –Hardware fails –Critical.
Advertisements

Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Topics covered: Floating point arithmetic CSE243: Introduction to Computer Architecture and Hardware/Software Interface.
2-1 Chapter 2 - Data Representation Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer Architecture.
Lecture 16: Computer Arithmetic Today’s topic –Floating point numbers –IEEE 754 representations –FP arithmetic Reminder –HW 4 due Monday 1.
Chapter 1 Computing Tools Data Representation, Accuracy and Precision Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Faculty of Computer Science © 2006 CMPUT 229 Floating Point Representation Operating with Real Numbers.
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (2)
Computer ArchitectureFall 2007 © September 5, 2007 Karem Sakallah CS 447 – Computer Architecture.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors.
M68K Assembly Language Programming Bob Britton Chapter 12 IEEE Floating Point Notice: Chapter slides in this series originally provided by B.Britton. This.
2-1 Computer Organization Part Fixed Point Numbers Using only two digits of precision for signed base 10 numbers, the range (interval between lowest.
Floating Point Numbers
1 Error Analysis Part 1 The Basics. 2 Key Concepts Analytical vs. numerical Methods Representation of floating-point numbers Concept of significant digits.
Floating Point Numbers
Computer ArchitectureFall 2008 © August 27, CS 447 – Computer Architecture Lecture 4 Computer Arithmetic (2)
Data Representation Number Systems.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 31.
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
Information Representation (Level ISA3) Floating point numbers.
Computer Organization and Architecture Computer Arithmetic Chapter 9.
Computer Arithmetic Nizamettin AYDIN
Fixed-Point Arithmetics: Part II
MATH 685/CSI 700 Lecture Notes Lecture 1. Intro to Scientific Computing.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
Computing Systems Basic arithmetic for computers.
Floating Point. Agenda  History  Basic Terms  General representation of floating point  Constructing a simple floating point representation  Floating.
Data Representation in Computer Systems
Floating Point (a brief look) We need a way to represent –numbers with fractions, e.g., –very small numbers, e.g., –very large numbers,
ME 142 Engineering Computation I Computer Precision & Round-Off Error.
Round-off Errors.
Round-off Errors and Computer Arithmetic. The arithmetic performed by a calculator or computer is different from the arithmetic in algebra and calculus.
CSC 221 Computer Organization and Assembly Language
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Some Basic Math Concepts for Statistics
Vector Norms and the related Matrix Norms. Properties of a Vector Norm: Euclidean Vector Norm: Riemannian metric:
1 Representation of Data within the Computer Oct., 1999(Revised 2001 Oct)
Floating-Point Representation We can store integers and characters easily in binary, but what about fractions? ¼ =.25 = 2.5 * *
Numerical Methods.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.
Computer Arithmetic Floating Point. We need a way to represent –numbers with fractions, e.g., –very small numbers, e.g., –very large.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Floating Point Numbers Representation, Operations, and Accuracy CS223 Digital Design.
CS 232: Computer Architecture II Prof. Laxmikant (Sanjay) Kale Floating point arithmetic.
COMPUTER SCIENCE Data Representation and Machine Concepts Section 1.7 Instructor: Lin Chen Sept 2013.
10/7/2004Comp 120 Fall October 7 Read 5.1 through 5.3 Register! Questions? Chapter 4 – Floating Point.
ESO 208A/ESO 218 LECTURE 2 JULY 31, ERRORS MODELING OUTPUTS QUANTIFICATION TRUE VALUE APPROXIMATE VALUE.
R EPRESENTATION OF REAL NUMBER Presented by: Pawan yadav Puneet vinayak.
Numerical Analysis CC413 Propagation of Errors. 2 In numerical methods, the calculations are not made with exact numbers. How do these inaccuracies propagate.
Binary Numbers The arithmetic used by computers differs in some ways from that used by people. Computers perform operations on numbers with finite and.
COSC2410: LAB 2 BINARY ARITHMETIC SIGNED NUMBERS FLOATING POINT REPRESENTATION BOOLEAN ALGEBRA 1.
Cosc 2150: Computer Organization Chapter 9, Part 3 Floating point numbers.
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
Introduction to Numerical Analysis I
Floating Point Representations
ME 142 Engineering Computation I
Number Systems and Binary Arithmetic
Floating Point Math & Representation
CS 232: Computer Architecture II
William Stallings Computer Organization and Architecture 7th Edition
Chapter 2 ERROR ANALYSIS
CSCI206 - Computer Organization & Programming
Approximations and Round-Off Errors Chapter 3
Presentation transcript:

Numerical Computations in Linear Algebra

Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer must have the computations performed in the presence of (usually) inexact representation of the model or problem itself. Furthermore, the computational steps must be performed in bounded arithmetic – bounded in the sense of finite precision and finite range. Finite precision: Computation must be done in the presence of rounding or truncation error at each stage. Finite range: The intermediate and final result must lie within the range of the particular computing machine that is being used.

The finite precision nature of Computer arithmetic limits the number of digits available to represent the results of addition, subtraction, multiplication, and division and therefore makes unlikely that the associative and distributive laws hold for the actual arithmetic operations performed on the computing machine. Recall: Floating-point from the base of the floating-point arithmetic an integer exponent the number of characters available to represent the fractional part of. the number of characters allocated to represent the exponent part of the number and therefore determines the range of arithmetic of the computing machine.

A typical machine representation of a floating-point number is where is the sign of the number. Usually, and the sign of the exponent is implicit in the sense that 0 represents the smallest exponent permitted while with each represents the largest possible exponent. For example, assume a binary machine where and. The bits representing the exponent part of the number range from to Both positive and negative exponents must be accomodated.

Note that the above range of actual exponent is not symmetric about zero. We say that the explicit exponent is the actual exponent excess 64. As for the fractional part of a floating-point number it is important to realize that computing machines do not generally perform a proper round on representing numbers after floating-point operations. For example, truncation of the six digit number gives , whereas proper rounding gives Such truncation can result in a bias in the accumulation of rounding errors and is essential in rounding error analysis. One cannot assume that decimal numbers are correctly rounded when they are represented in bases other than 10, say 2 or 16.

A number is represented in the computing machine in floating point, the associated relative error in its representation is where, in general, is the relative precision of the finite arithmetic, i.e., the smallest number for which the floating-point representation of is not equal to 1. If the notation is used to denote floating-point computation then we have (Occasionally, is defined to be the largest number for which ). The number varies, of course, depending on the computing machine and arithmetic precision (single, double, etc.) that is used.

Let the floating-point operation, add, subtract, multiply, and divide for the quantities and be represented by. Then, usually, where and are of order. Therefore, one can say, in many cases, that the computed solution is the exact solution of a neighboring, or a perturbed problem. Some useful Notations: : the set of all matrices with coeffs. in the field : the set of all matrices of rank with coeffs. in the field : the transpose of : the conjugate transpose of : the spectral norm of (i.e., the matrix norm subordinate to the Euclidean vector norm: ) : the Forbenius norm of, : : the spectrum of : the symmetric (or Hermitian) matrix is non-negative (positive) definite.

Numerical stability of an Algorithm: Suppose we have some mathematically defined problem represented by which acts on data some set of data, to produce a solution some set of solutions. Given we desire to compute. Frequently, only an approximation to is known and the best we could hope for is to calculate. If is near the problem is said to be well- conditioned. If may potentially differ greatly from when is near, the problem is said to be ill-conditioned or ill-posed. The concept “near” cannot be made precise without further information about a particular problem. An algorithm to determine is numerically stable if it does not introduce any more sensitivity to perturbation than is already inherent in the problem. Stability ensures that the computed solution is near the solution of a slightly perturbed problem.

Let denote an algorithm used to implement or approximate. Then is stable if for all there exists near such that (the solution of a slightly perturbed problem) is near (the computed solution, assuming is representable in the computing machine; if is not exactly representable we need to introduce into the definition an additional near but the essence of the definition of stability remains the same). One can not expect a stable algorithm to solve an ill-conditioned problem any more accurately than the data warrant but an unstable algorithm can produce poor solutions even to well- conditioned problems. There are thus two separate factors to consider in defermining the accuracy of a computed solution. First, if the algorithm is stable is near and second, if the problem is well- conditioned is near. Thus, is near.

Ex: We seek a solution of the linear system of equations The computed solution is obtained from the perturbed problem where The problem is said to be ill-conditioned (with respect to a ) if is large. There then exist such that for a nearby the solution corresponding to may be as far away as from the solution corresponding to. : conditional number