Revision.

Slides:



Advertisements
Similar presentations
Prof. Muhammad Saeed 1.Nonlinear Equations 2.System of Linear Equations.
Advertisements

CS-110 Computational Engineering Part 3
Lecture 5 Newton-Raphson Method
Roundoff and truncation errors
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 One-Dimensional Unconstrained Optimization Chapter.
ROOTS OF EQUATIONS Student Notes ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
Optimization Introduction & 1-D Unconstrained Optimization
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
Computational Methods in Physics PHYS 3437
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Chapter 4 Roots of Equations
Roots of Equations Open Methods (Part 2).
Chapter 6 Open Methods.
Round-Off and Truncation Errors
Curve-Fitting Interpolation
Lecture 2: Numerical Differentiation. Derivative as a gradient
A few words about convergence We have been looking at e a as our measure of convergence A more technical means of differentiating the speed of convergence.
Open Methods (Part 1) Fixed Point Iteration & Newton-Raphson Methods
Curve-Fitting Regression
Optimization Methods One-Dimensional Unconstrained Optimization
Engineering Optimization
Roots of Equations Bracketing Methods.
Curve-Fitting Polynomial Interpolation
Optimization Mechanics of the Simplex Method
Optimization Methods One-Dimensional Unconstrained Optimization
Systems of Non-Linear Equations
1 Error Analysis Part 1 The Basics. 2 Key Concepts Analytical vs. numerical Methods Representation of floating-point numbers Concept of significant digits.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Interpolation Chapter 18.
Advanced Topics in Optimization
Optimization Methods One-Dimensional Unconstrained Optimization
Roots of Equations Open Methods Second Term 05/06.
Chapter 3 Root Finding.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
UNCONSTRAINED MULTIVARIABLE
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 2 Roots of Equations Why? But.
Chapter 17 Boundary Value Problems. Standard Form of Two-Point Boundary Value Problem In total, there are n 1 +n 2 =N boundary conditions.
Lecture 2 Number Representation and accuracy
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
84 b Unidimensional Search Methods Most algorithms for unconstrained and constrained optimisation use an efficient unidimensional optimisation technique.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
EE 3561_Unit_1(c)Al-Dhaifallah EE 3561 : - Computational Methods in Electrical Engineering Unit 1: Introduction to Computational Methods and Taylor.
Lecture 22 - Exam 2 Review CVEN 302 July 29, 2002.
Review Taylor Series and Error Analysis Roots of Equations
Round-off Errors.
Curve-Fitting Regression
1 Optimization Multi-Dimensional Unconstrained Optimization Part II: Gradient Methods.
Numerical Methods for Engineering MECN 3500
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Introduction Course Outline.
Numerical Methods.
Today’s class Roots of equation Finish up incremental search
Lecture 5 - Single Variable Problems CVEN 302 June 12, 2002.
Numerical Analysis CC413 Propagation of Errors.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Truncation Errors and the Taylor Series Chapter 4.
INTRO TO OPTIMIZATION MATH-415 Numerical Analysis 1.
Exam 1 Oct 3, closed book Place ITE 119, Time:12:30-1:45pm One double-sided cheat sheet (8.5in x 11in) allowed Bring your calculator to the exam Chapters.
Numerical Analysis CC413 Propagation of Errors. 2 In numerical methods, the calculations are not made with exact numbers. How do these inaccuracies propagate.
1 M 277 (60 h) Mathematics for Computer Sciences Bibliography  Discrete Mathematics and its applications, Kenneth H. Rosen  Numerical Analysis, Richard.
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
CHAPTER 3 NUMERICAL METHODS
Simultaneous Linear Equations
Secant Method.
Computational Methods EML3041
MATH 2140 Numerical Methods
Numerical Analysis Lecture 45.
Computers in Civil Engineering 53:081 Spring 2003
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Pivoting, Perturbation Analysis, Scaling and Equilibration
Presentation transcript:

Revision

Part I: Errors Floating-point number representations Round-off and chopping errors Overflow and underflow Absolute vs. Relative Errors Errors propagation through arithmetic operations Subtractive Cancellation

Q1 Which of these decimal numbers cannot be represented exactly using the IEEE 754 standard for double precision floating point numbers (1 sign bit, 11 bits exponent and 52 bits mantissa)? 1234567890 0.1 0.1 x 102 The value of 1/1024 -123.25 Answer: (B) 0.1

Q2 What are the general approaches we can take to minimize errors in the calculated results? Avoid adding huge number to small number Avoid subtracting numbers that are close Minimize the number of arithmetic operations involved

Part I: Truncation Errors Taylor's Series Approximation Derive Taylor's series Understand the characteristics of Taylor's Series approximation Estimate truncation errors using the remainder term Estimating truncation errors by Alternating Series, Geometry series, Integration

Q3 Let g1(x) be the Taylor series approximation of f(x) at π/4. Suppose we want to approximate f(0.5) with error less than 10-6. Which Taylor series approximation is more efficient (involves less arithmetic operations)? g1(x) is better than g2(x) for all f(x) g2(x) is better than g1(x) for all f(x) Depends on what f(x) is. Answer: C [g1(x) is better than g2(x) for most f(x)]. A counter example would be f(x) = sin(x) or f(x) = cos(x) in which the alternative terms are zeroes.

Q4 Estimate the truncation errors for both series if we only include the first 10 terms of the series. Answer: For S1, infinity. For S2, 1/11.

Part II: Roots Finding Closed or Bracketing methods How to select initial interval? How to select the sub-interval for subsequent iterations? Bisection vs. False-Positioning methods in terms of performance Closed vs. Open methods Performance Convergence Multiple roots

Part II: Roots Finding Fixed point iteration Newton Raphson method Convergence Analysis Newton Raphson method Deriving the updating formula Selecting initial point Pitfalls Convergence Rate (Single/multiple roots) Secant vs. Newton Raphson

Part II: Roots Finding Convergent Rate Definition Estimation e.g.: Suppose the approximated errors in each iteration are 0.1, -0.05, 0.001, 10-4, 10-8, 10-16, 10-32, 0, 0, 0, … What is the convergent rate of the corresponding method? Modified Newton's methods for multiple roots

Part III: Systems of Equations Gauss Elimination Forward Elimination and its complexity Back substitution and its complexity Effect of pivoting and scaling LU Decomposition Algorithm LU Decomposition vs. Gauss Elimination Similarity Advantages (Disadvantages?) Complexity

Part III: Systems of Equations Error Analysis Ill-Condition system What is an ill-condition function? Iterative Methods (Gauss-Seidel, Jacobi) What are they good for? Convergent criteria Special Form of matrices [Optional] Tri-diagonal, symmetric, etc.

Part IV: Optimization Classification of Optimization Problems Single or multiple variables Linear or non-linear Constrained or unconstrained 1-D unconstrained optimization Golden-Section Search What is so special about this method? Quadratic Interpolation How fast does it converges? Newton's Method

Part IV: Optimization Multi-Dimensional Unconstrained Optimization Non-gradient or direct methods Gradient methods What is gradient? What is Hessian matrices? How to check if a point is a local maxima/minima or saddle point? Linear Programming Simplex Method

Part V: Curve Fitting Linear Least-Square Regression Why is it called "Linear"? When to use Regression and when to use interpolation? How to construct polynomials? Newton form Lagrange form

Part V: Curve Fitting What is spline interpolation? Spline interpolation vs. polynomial interpolation Linear vs. Quadratic vs. Cubic Splines What are the conditions used to determine the spline functions? Does the order of the data points matter in Regression Polynomial interpolation Spline interpolation