+ All Categories
Home > Documents > Chapter 1 WaterMark - eng.razi.ac.ir

Chapter 1 WaterMark - eng.razi.ac.ir

Date post: 02-Nov-2021
Category:
Upload: others
View: 5 times
Download: 0 times
Share this document with a friend
36
Mathematical Preliminaries and Error Analysis C HA PT E R 1
Transcript
Page 1: Chapter 1 WaterMark - eng.razi.ac.ir

Mathematical Preliminariesand Error Analysis

C HA PT E R 1

Page 2: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Limit

Page 3: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Continuity

Set X: C(X) Interval : C[a,b]

limit of a sequence

Page 4: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Differentiability

Page 5: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 6: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 7: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 8: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 9: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Integration

function f to be continuousthe points xi to be equally spacedzi = xi

Page 10: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

When g(x) ≡ 1 Mean Value Theorem for Integrals

the average value of the function f over the interval [a, b]

Page 11: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Taylor Polynomials and Series

(nth Taylor polynomial)

(remainder term or truncation error)

n→∞ : Pn(x) is called the Taylor series for f about x0.x0 = 0 : Maclaurin polynomial.

Page 12: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 13: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

→ cos 0.01 ≅ 0.99995

trunca on error →

Determining a bound for the accuracy of the approximation:

More accurate approximation:

→ cos 0.01 ≅ 0.99995

trunca on error →

Page 14: Chapter 1 WaterMark - eng.razi.ac.ir

1.1 Review of CalculusInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

trunca on error →

Actual error → which is within the error bound.

Page 15: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Round-off error:

Decimal Machine Numbers

k-digit decimal machine numbers:

• Machine arithmetic involves numbers with only a finite number of digits.• The calculations are performed with approximate representation.• The error that results from replacing a number with its floating-point form (rounding or

chopping)

3= 1.732050808 3 = (1.732050808)2=3.000000001

Any positive real number:

The floating-point form of y: ChoppingRounding

Page 16: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Absolute error VS. Relative error

Page 17: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Significant digits

Page 18: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

relative error of f l(y)

k-digit chopping

k-digit rounding

Finite-Digit Arithmetic

In addition to inaccurate representation of numbers, the arithmetic performed in a computeris not exact.

Page 19: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 20: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 21: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 22: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 23: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 24: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 25: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Nested Arithmetic: reducing the round-off error by rearranging calculations

Page 26: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Round-off Errors and Computer ArithmeticInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Writing f(x) in a nested manner:

Three-digit rounding answer is: −14.3

Polynomials should always be expressed in nested form before performing an evaluation!

Page 27: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Algorithms and ConvergenceInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

AlgorithmUnambiguousFinite sequenceSpecified order

Page 28: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Algorithms and ConvergenceInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 29: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Algorithms and ConvergenceInstructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 30: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Algorithms and Convergence Instructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

AlgorithmStableUnstableConditionally stable

Algorithm Stability:

small changes in the initial data

small changes in the final results

Page 31: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Algorithms and Convergence Instructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 32: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Algorithms and Convergence Instructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 33: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Algorithms and Convergence Instructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 34: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Algorithms and Convergence Instructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Rates of Convergence:

Page 35: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Algorithms and Convergence Instructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis

Page 36: Chapter 1 WaterMark - eng.razi.ac.ir

1.2 Algorithms and Convergence Instructor: Dr. Ali AmiriMathematical Preliminaries and Error Analysis


Recommended