Introduction To Numerical Methods: Grading System
Introduction To Numerical Methods: Grading System
Introduction To Numerical Methods: Grading System
Numerical Methods
•3 units
•2 hours lecture and 3 hours
laboratory per week
•Pre-requisites:
•CSC 101 - Introduction to Computer
Programming
•ES 81 - Mathematical Methods of
Engineering
•Text Book: Numerical Methods for
Engineers
by Chapra and Canale
Grading System
Lecture (2 units or 66.67% of the course):
• Exam 1 25%
• Exam 2 25%
• Exam 3 30%
• Quiz/Seatworks/Boardworks 15%
• Attendance 5%
Total = 100% Laboratory (1 unit or 33.33%
of the course):
• Laboratory/Machine Problems 75%
• Case Study 25% Total = 100% Passing
grade point: 60 = 3.00
Why numerical
methods?
•Analytical method have limitations in
solution
• The analytic solution is to know absolutely
how the model will behave under any
models.
• Many systems possess complex
functionality that it is hard to track the
ROOTS OF
EQUATION
Roots of Equation
Bracketing Methods
•Bisection Method
•False Position Method
•Modified False Position Method
Open Methods
• Simple Fixed-point Iteration
• Newton-Raphson Mehtod
• Secant Method
• Bairstow's Method (Specific for
Polynomial)
Bisection Method
• Known as binary chopping
• incremental search method locates the
shown below)
xl xr xu f xl f xr f(xu)
1st iteration 0 0.5000 1.0000 1.0000
-0.2500 -1.0000
Example(cont.)
Step 4: We must choose the interval
for the next iteration from between the
two subintervals [xl xr] and [ xr xu ].
Example(cont.)
xl xr xu f xl f xr f(xu)
1st iteration 0 0.5000 1.0000 1.0000
-0.2500 -1.0000
2nd iteration 0 0.5000
Example(cont.)xl xr xu f xl f xr f(xu) 1st
iteration 0 0.5000 1.0000 1.0000 -0.2500
-1.0000
2nd iteration 0 0.2500 0.5000 1.0000
0.3125 -0.2500
3rd iteration 0.2500 0.3750 0.5000 0.3125
0.0156 -0.2500
4th iteration 0.3750 0.4375 0.5000 0.0156
-0.1211 -0.2500
5th iteration 0.3750 0.4063 0.4375 0.0156
-0.0537 -0.1211
When to stop?
Stopping Criterion and Error
Estimates
) ( s a ε ε < Stop if
xl xr xu f xl f xr f xu εa
0 0.5000 1.0000 1.0000 -0.2500 -1.0000
0 0.2500 0.5000 1.0000 0.3125 -0.2500 100%
0.2500 0.3750 0.5000 0.3125 0.0156 -0.2500
0.3750 0.4375 0.5000 0.0156 -0.1211 -0.2500
0.3750 0.4063 0.4375 0.0156 -0.0537 -0.1211
0.3750 0.3906 0.4063 0.0156 -0.0193 -0.0537
0.3750 0.3828 0.3906 0.0156 -0.0019 -0.0193
0.3750 0.3789 0.3828 0.0156 0.0069 -0.0019
0.3789 0.3809 0.3828 0.0069 0.0025 -0.0019
0.3809 0.3818 0.3828 0.0025 0.0003 -0.0019
0.3818 0.3823 0.3828 0.0003 -0.0008 -0.0019
0.3818 0.3821 0.3823 0.0003 -0.0003 -0.0008
0.3818 0.3820 0.3821 0.0003 0.0000 -0.0003
Drawbacks (continued)
• If a function f(x) is such that it just touches the x-
guesses.
f(x)
()2
x xxf =
27
Drawbacks (continued)
∎ Function changes sign but root
does not exist
f(x)
xf ( )=
1
x x
28
calculator is prohibited.
1stiteration - member 1
2nd iteration - member 2
3rd iteration - member 3 4th iteration -
member 4
5th iteration - member 5
“Relay Race Games” (cont.)
5. Each member will only be given 60
seconds to solve and write his/her answer
Iteration xl xr xu f xl f xr f xu 12..n
Question
2
•Solve for the root of f x = 3x + x
− 3.
•Assume that the root are
bounded by ± [0 1].
•Stopping criterion: f x = 0.1
Answer:
xl xr xu f xl f xr f(xu) 0.0000 0.5000
1.0000 -3.0000 -1.7500 1.0000
0.5000 0.7500 1.0000 -1.7500
-0.5625 1.0000 0.7500 0.8750
1.0000 -0.5625 0.1719 1.0000
0.7500 0.8125 0.8750 -0.5625
-0.2070 0.1719 0.8125 0.8438
0.8750 -0.2070 -0.0205 0.1719
False Position Method
False Position Method
• f(xu) and f(xl) is connected by a straight
line.
Example
2
f x = x − 3x + 1
Step 1: Make an initial guess of an interval
[xl xu] that necessarily contains the first root,
say, [0 1]
f(x )
Step 2: Locate the midpoint, xr = xu − u
(x −x )
l u f xl −f(xu)
shown below)
xl xr xu f xl f xr f(xu) 1st iteration 0
0.5000 1.0000 1.0000 -0.2500
-1.0000
Example(cont.)
Step 4: We must choose the interval
for the next iteration from between the
Example(cont.)xl xr xu f xl f xr f(xu)
1st iteration 0 0.5000 1.0000 1.0000
-0.2500 -1.0000
2nd iteration 0 0.4000
Example(cont.)xl xr xu f xl f xr f(xu)
1st iteration 0 0.5000 1.0000 1.0000
-0.2500 -1.0000
2nd iteration 0 0.4000 0.5000 1.0000
-0.0400 -0.2500
3rd iteration 0 0.3846 0.4000 1.0000
-0.0059 -0.0400
4th iteration 0 0.3824 0.3846 1.0000
-0.0009 -0.0059
5th iteration 0 0.3820 0.3824 1.0000
-0.0001 -0.0009
➢ After 5 iterations we will get: xr= 0.3820 (5th
iteration) ➢ |f(x)|<0.1 we get: xr=0.4000 (2nd
iteration) ➢ we continue with more iterations, we
will reach xr=0.3820, which is the true value of
the
first root
“RELAY RACE GAME 2”
1. Group yourself into 5 2. Get 1⁄2 sheet of
paper and fill in the Team Member Details
Name of Team:
S/n Name Team Role
calculator is prohibited.
1stiteration - member 1
2nd iteration - member 2
3rd iteration - member 3 4th iteration -
member 4
5th iteration - member 5
“RELAY RACE GAME 2”(cont.)
5. Each member will only be given 60
seconds to solve and write his/her answer