Professional Documents
Culture Documents
UNIVERSITY
1
Course ESE 306
2
Week Topic
1 Introduction to error analysis; round-off errors, truncation errors, and total error.
2 Review of calculus: vectors, matrices and linear algebra.
3 Solving non-linear equations and estimation of errors in numerical solutions.
4 Bisection method, Regula Falsi method, Newton-Raphson method, Secant method, fixed-
point iteration method.
5 Solution of non-linear systems: Newton-Raphson method, fixed-point iteration method.
6 Solving a system of linear equations: Direct methods; Gauss elimination method, Gauss
elimination method with pivoting, Gauss-Jordan elimination method, Cramer’s rule, LU
decomposition method, solution using inverse of a matrix.
7 Solving a system of linear equations: Indirect methods (iterative methods); Gauss-Siedel
method, Jacobi method.
8 Midterm
9 Numerical integration: Rectangular, midpoint, trapezoidal and Simpson’s methods
10 Numerical method for Ordinary Differentia Equations
11 Curve-fitting methods.
12 Curve-fitting methods. Lagrange and Newton interpolation polynomials
13 Review of the course
14 Final Exam
3
Student Evaluation:
1- Homework 10 points
2- Quiz 10 points
3- Participation 5 points
4- Midterm Exam 30 points
5- Final Exam 45 points
Total= 100 points
4
Week Topic
1 Introduction to error analysis; round-off errors, truncation errors, and total error.
2 Review of calculus: vectors, matrices and linear algebra.
3 Solving non-linear equations and estimation of errors in numerical solutions.
4 Bisection method, Regula Falsi method, Newton-Raphson method, Secant method, fixed-
point iteration method.
5 Solution of non-linear systems: Newton-Raphson method, fixed-point iteration method.
6 Solving a system of linear equations: Direct methods; Gauss elimination method, Gauss
elimination method with pivoting, Gauss-Jordan elimination method, Cramer’s rule, LU
decomposition method, solution using inverse of a matrix.
7 Solving a system of linear equations: Indirect methods (iterative methods); Gauss-Siedel
method, Jacobi method.
8 Midterm
9 Numerical integration: Rectangular, midpoint, trapezoidal and Simpson’s methods
10 Numerical method for Ordinary Differentia Equations
11 Curve-fitting methods.
12 Curve-fitting methods. Lagrange and Newton interpolation polynomials
13 Review of the course
14 Final Exam
5
Lecture No. 1
6
Lecture Outlines
7
Introduction:
1-1-Numerical analysis
9
1-2- Applications:
10
• What can we solve numerically?
• Patriot system hit by SCUD missile
– position predicted from time and velocity
– the system up-time in 1/10 of a second
was converted to seconds using 24bit precision
(by multiplying with 1/10)
– 1/10 has non-terminating binary expansion
– after 100h, the error accumulated to 0.34s
– the SCUD travels 1600 m/s so it travels >500m
in this time
• Ariane 5
– a 64bit FP number containing the horizontal
velocity was converted to 16bit signed integer
– range overflow followed
Numerical Methods in Energy Systems?
Numerical
Analysis of
Energy Converter
for Wave Energy
Power
Generation-
Pendulum System
1-3 Methods:
• . 14
1-5- Characteristics of Numerical
Methods
1. The solution procedure is iterative, with the
accuracy of the solution improving with each
iteration.
2. The solution procedure provides only an
approximation to the true, but unknown, solution.
3. An initial estimate of the solution may be
required.
4. The algorithm is simple and can be easily
programmed.
5. The solution procedure may occasionally diverge
from rather than converge to the true solution.
3- 15
Numerics is about numbers
• Numerical methods: Numerical approximation of
solutions to understood problems
• Two main objectives
– quantify errors
Approximation without error estimation is useless
– increase efficiency
Solutions which take years or need more
resources that you have are useless
• Nowadays, many fields depend on numeric
• Accuracy. How close is a computed or
measured value to the true value
• Precision (or reproducibility). How close is a
computed or measured value to previously
computed or measured values.
• Inaccuracy (or bias). A systematic deviation
from the actual value.
• Imprecision (or uncertainty). Magnitude of
scatter.
Together, the two errors constitute the total error of the numerical
solution, which is the difference between the true (exact) solution
and the approximate numerical solution
What is about numbers
1- Absolute Error is the numerical difference between
the true value of a quantity and its approximate
value.
2-In many cases, absolute error may not reflect its
influence correctly as it does not take into account the
order of magnitude of the value under study. For this
we introduce the concept of relative error which is
‘normalized’ absolute error.
3-The fractional form of relative error, can also be
expressed as the percentage relative error.
Example: Square Root
• To find the value of x
x0 + x = x x0 : initial estimate
x : error
x − x02
x =
2 x0
x1 = x0 + x
Generalizing, xi +1 = xi + x
x − xi2
x =
2 xi
3- 31
• Assume x=150. Because 122=144, let x0=12.
x − x02 150 − 12 2
x = = = 0.25
2 x0 2(12)
x − x 22 150 − (12.24745) 2
x = = = −0.12861 10 −5
2 x2 2(12.24745)
3- 32
Numerical Based on Errors