SlideShare ist ein Scribd-Unternehmen logo
1 von 44
Engr. Abdul Khaliq
Department of Irrigation and Drainage
Faculty of Agricultural Engineering & Technology
University of Agriculture Faisalabad
Engr Abdul Khaliq 13/10/2014
Objectives:
 In this course, students will be able to demonstrate
programming proficiency using structured programming
techniques to implement numerical methods for solutions
using computer-based programming techniques.
Engr Abdul Khaliq 23/10/2014
Course OutlineTheory:
 Mathematical preliminaries,
 Solution of equations in one variable,
 Interpolation and polynomial Approximation,
 Numerical differentiation and integration,
 Initial value problems for ordinary differential equations,
 Direct methods for solving linear systems,
 Iterative techniques in Matrix algebra,
 Solution of non-linear equations.
 Approximation theory;
 Eigen values and vector;
Practical: Programming of different numerical techniques, direct methods, iterative
techniques, Eigen values and vectors.
Suggested Readings:
1. Burden, R. L. and J. D. Faires, 2011. Numerical Analysis. PW Publishing Company, Boston, USA.
2. Chapra, S. C., and Canal, R.P., 2 010.,Numerical Methods for Engineers, 6th Edition, McGraw Hill Inc.
3. Mumtaz Khan 2008 Numerical Methods for Engineering Science and Mathematics, 2nd Edition..
Engr Abdul Khaliq 33/10/2014
NUMERICAL APPROXIMATIONS
Numerical methods is an area of study
in mathematics that discusses the
solutions to various mathematical
problems involving differential
equations, curve
fittings, integrals, eigenvalues, and root
findings through approximations
rather than exact solutions.
Engr Abdul Khaliq 43/10/2014
Mathematical Preliminaries
and Error Analysis
In beginning chemistry courses, the ideal gas law,
PV = NRT,
Suppose two experiments are conducted to test this law, using the same gas in
each case. In the first experiment,
 P = 1.00 atm, V = 0.100 m3,
 N = 0.00420 mol, R = 0.08206.
 The ideal gas law predicts the temperature of the gas to be
 When we measure the temperature of the gas however, we find that the true
temperature is 15⁰C.
Engr Abdul Khaliq 5
CKT
RT
PV
T
1715.291
)082460.0)(00420.0(
)100.0)(00.1(
3/10/2014
Mathematical Preliminaries
and Error Analysis (continued)
Engr Abdul Khaliq 6
We then repeat the experiment using the same values of R
and N, but increase the pressure by a factor of two and
reduce the volume by the same factor. The product PV
remains the same, so the predicted temperature is still 17⁰C.
But now we find that the actual temperature of the gas is 19
⁰C.
3/10/2014
Review of Calculus
 To solve problems that cannot be solved exactly
due
x u
2
2
2
1
Engr Abdul Khaliq 73/10/2014
Review of Calculus
Differentiability
Engr Abdul Khaliq 83/10/2014
Review of Calculus
Engr Abdul Khaliq 93/10/2014
10
Propagation of Errors
In numerical methods, the calculations are not
made with exact numbers. How do these
inaccuracies propagate through the calculations?
Engr Abdul Khaliq3/10/2014
Engr Abdul Khaliq 11
Example 1:
Find the bounds for the propagation in adding two numbers. For example if
one is calculating X +Y where
X = 1.5 0.05
Y = 3.4 0.04
Solution
Maximum possible value of X = 1.55 and Y = 3.44
Maximum possible value of X + Y = 1.55 + 3.44 = 4.99
Minimum possible value of X = 1.45 and Y = 3.36.
Minimum possible value of X + Y = 1.45 + 3.36 = 4.81
Hence
4.81 ≤ X + Y ≤4.99.
3/10/2014
Engr Abdul Khaliq 12
Propagation of Errors In Formulas
f nn XXXXX ,,.......,,, 1321
f
n
n
n
n
X
X
f
X
X
f
X
X
f
X
X
f
f 1
1
2
2
1
1
.......
If is a function of several variables
then the maximum possible value of the error in is
3/10/2014
Engr Abdul Khaliq 13
Example 2:
The strain in an axial member of a square cross-
section is given by
Given
Find the maximum possible error in the measured
strain.
Eh
F
2
N9.072F
mm1.04h
GPa5.170E
3/10/2014
14
)1070()104(
72
923
6
10286.64
286.64
E
E
h
h
F
F
Solution
Engr Abdul Khaliq3/10/2014
15
EhF 2
1
Eh
F
h 3
2
22
Eh
F
E
E
Eh
F
h
Eh
F
F
Eh
E 2232
21
9
2923
933923
105.1
)1070()104(
72
0001.0
)1070()104(
722
9.0
)1070()104(
1
3955.5
Thus
Hence
)3955.5286.64(
Engr Abdul Khaliq3/10/2014
Example 3:
Subtraction of numbers that are nearly equal can create unwanted inaccuracies. Using
the formula for error propagation, show that this is true.
Solution
Let
Then
So the relative change is
yxz
y
y
z
x
x
z
z
yx )1()1(
yx
yx
yx
z
z
Engr Abdul Khaliq 163/10/2014
Example 3:
For example if
001.02x
001.0003.2y
|003.22|
001.0001.0
z
z
= 0.6667
= 66.67%
Engr Abdul Khaliq 173/10/2014
Sources of Error
Engr Abdul Khaliq 18
Two sources of numerical error
1) Round off error
2) Truncation error
The error that is produced when a calculator or
computer is used to perform real-number calculations
is called round-off error.
3/10/2014
19
Round off Error
 Caused by representing a number approximately
333333.0
3
1
...4142.12
Engr Abdul Khaliq3/10/2014
20
Problems created by round off error
 Drown attack miss the target .Why?
Engr Abdul Khaliq3/10/2014
21
Problem with Patriot missile
 Clock cycle of 1/10 seconds was
represented in 24-bit fixed point
register created an error of 9.5 x 10-8
seconds.
 The battery was on for 100
consecutive hours, thus causing an
inaccuracy of
1hr
3600s
100hr
0.1s
s
109.5 8
s342.0
Engr Abdul Khaliq3/10/2014
22
Problem (cont.)
 The shift calculated in the ranging system of the
missile was 687 meters.
 The target was considered to be out of range at a
distance greater than 137 meters.
Engr Abdul Khaliq3/10/2014
23
Effect of Carrying Significant
Digits in Calculations
Engr Abdul Khaliq
3/10/2014
24
Truncation error Error caused by truncating or approximating a
mathematical procedure.
Engr Abdul Khaliq3/10/2014
25
Example of Truncation Error
Taking only a few terms of a Maclaurin series to
approximate
....................
!3!2
1
32
xx
xex
x
e
If only 3 terms are used,
!2
1
2
x
xeErrorTruncation x
Engr Abdul Khaliq3/10/2014
26
Another Example of Truncation Error
Using a finite x to approximate )(xf
x
xfxxf
xf
)()(
)(
P
Q
secant line
tangent line
Figure 1. Approximate derivative using finite Δx
Engr Abdul Khaliq3/10/2014
27
Another Example of Truncation Error
Using finite rectangles to approximate an
integral.
y = x 2
0
30
60
90
0 1.5 3 4.5 6 7.5 9 10.5 12
y
x
Engr Abdul Khaliq3/10/2014
28
Example 1 —Maclaurin series
Calculate the value of 2.1
e with an absolute
relative approximate error of less than 1%.
...................
!3
2.1
!2
2.1
2.11
32
2.1
e
n
1 1 __ ___
2 2.2 1.2 54.545
3 2.92 0.72 24.658
4 3.208 0.288 8.9776
5 3.2944 0.0864 2.6226
6 3.3151 0.020736 0.62550
aE %a
2.1
e
6 terms are required. How many are required to get
at least 1 significant digit correct in your answer?
Engr Abdul Khaliq3/10/2014
29
Example 2 —Differentiation
Find )3(f for
2
)( xxf using
x
xfxxf
xf
)()(
)(
and 2.0x
2.0
)3()2.03(
)3(' ff
f
2.0
)3()2.3( ff
2.0
32.3 22
2.0
924.10
2.0
24.1
2.6
The actual value is
,2)('
xxf 632)3('
f
Truncation error is then, 2.02.66
Can you find the truncation error with 1.0xEngr Abdul Khaliq3/10/2014
30
Example 3 — Integration
Use two rectangles of equal width to
approximate the area under the curve for
2
)( xxf over the interval ]9,3[
y = x 2
0
30
60
90
0 3 6 9 12
y
x
9
3
2
dxx
Engr Abdul Khaliq3/10/2014
31
Integration example (cont.)
)69()()36()(
6
2
3
2
9
3
2
xx
xxdxx
3)6(3)3( 22
13510827
Choosing a width of 3, we have
Actual value is given by
9
3
2
dxx
9
3
3
3
x
234
3
39 33
Truncation error is then
99135234
Can you find the truncation error with 4 rectangles?Engr Abdul Khaliq3/10/2014
Steps in Solving an
Engineering Problem
Engr Abdul Khaliq 323/10/2014
How do we solve an engineering problem?
Engr Abdul Khaliq 33
Problem Description
Mathematical Model
Solution of Mathematical Model
Using the Solution
3/10/2014
Mathematical Procedures
 Nonlinear Equations
 Differentiation
 Simultaneous Linear Equations
 Curve Fitting
 Interpolation
 Regression
 Integration
 Ordinary Differential Equations
 Other Advanced Mathematical Procedures:
 Partial Differential Equations
 Optimization
 Fast Fourier Transforms
Engr Abdul Khaliq 343/10/2014
Nonlinear Equations
Engr Abdul Khaliq 35
How much of the floating ball is under water?
010993.3165.0 423
xx
Diameter=0.11m
Specific Gravity=0.6
3/10/2014
Nonlinear Equations
Engr Abdul Khaliq 36
How much of the floating ball is under the water?
010993.3165.0)( 423
xxxf
3/10/2014
Differentiation
t.
t
v(t) 89
50001016
1016
ln2200 4
4
Engr Abdul Khaliq 37
What is the acceleration
at t=7 seconds?
dt
dv
a
3/10/2014
Differentiation
Time (s) 5 8 12
Vel (m/s) 106 177 600
dt
dv
a
Engr Abdul Khaliq 38
What is the acceleration at t=7 seconds?
3/10/2014
Simultaneous Linear Equations
Time (s) 5 8 12
Vel (m/s) 106 177 600
Engr Abdul Khaliq 39
Find the velocity profile, given
,)( 2
cbtattv
Three simultaneous linear equations
106525 cba
125 t
177864 cba
60012144 cba
3/10/2014
Interpolation
Time (s) 5 8 12
Vel (m/s) 106 177 600
Engr Abdul Khaliq 40
What is the velocity of the rocket at t=7 seconds?
3/10/2014
Regression
Engr Abdul Khaliq 41
Thermal expansion coefficient data for cast steel
3/10/2014
Regression (cont)
Engr Abdul Khaliq 423/10/2014
Integration
Engr Abdul Khaliq 43
fluid
room
T
T
dTDD
Finding the diametric contraction in a steel shaft when
dipped in liquid nitrogen.
3/10/2014
Reading
Engr Abdul Khaliq 44
1. Burden, R. L. and J. D. Faires, 2011. Numerical Analysis. PW
Publishing Company, Boston, USA.
2. Chapra, S. C., and Canal, R.P., 2 010.,Numerical Methods for
Engineers, 6th Edition, McGraw Hill Inc.
3. Mumtaz Khan 2008 Numerical Methods for Engineering
Science and Mathematics, 2nd Edition..
THE END
3/10/2014

Weitere ähnliche Inhalte

Was ist angesagt?

Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equationsRifat Rahamatullah
 
Partial differential equation & its application.
Partial differential equation & its application.Partial differential equation & its application.
Partial differential equation & its application.isratzerin6
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsMeenakshisundaram N
 
Solved numerical problems of fourier series
Solved numerical problems of fourier seriesSolved numerical problems of fourier series
Solved numerical problems of fourier seriesMohammad Imran
 
Numerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTNumerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTPanchal Anand
 
Finite difference method
Finite difference methodFinite difference method
Finite difference methodDivyansh Verma
 
Application of interpolation and finite difference
Application of interpolation and finite differenceApplication of interpolation and finite difference
Application of interpolation and finite differenceManthan Chavda
 
introduction to Numerical Analysis
introduction to Numerical Analysisintroduction to Numerical Analysis
introduction to Numerical AnalysisGhulam Mehdi Sahito
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler methodSohaib Butt
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methodsTarun Gehlot
 
B.tech ii unit-1 material curve tracing
B.tech ii unit-1 material curve tracingB.tech ii unit-1 material curve tracing
B.tech ii unit-1 material curve tracingRai University
 
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve Mukuldev Khunte
 
NUMERICAL METHOD AND ITS APPLICATION
NUMERICAL METHOD AND ITS APPLICATIONNUMERICAL METHOD AND ITS APPLICATION
NUMERICAL METHOD AND ITS APPLICATIONREZAUL KARIM REFATH
 
Application of numerical method
Application of numerical methodApplication of numerical method
Application of numerical methodNayeem Rahman
 

Was ist angesagt? (20)

Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equations
 
Numerical Analysis
Numerical AnalysisNumerical Analysis
Numerical Analysis
 
Partial differential equation & its application.
Partial differential equation & its application.Partial differential equation & its application.
Partial differential equation & its application.
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equations
 
Solved numerical problems of fourier series
Solved numerical problems of fourier seriesSolved numerical problems of fourier series
Solved numerical problems of fourier series
 
Numerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTNumerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPT
 
Finite difference method
Finite difference methodFinite difference method
Finite difference method
 
Application of interpolation and finite difference
Application of interpolation and finite differenceApplication of interpolation and finite difference
Application of interpolation and finite difference
 
Numerical methods
Numerical methodsNumerical methods
Numerical methods
 
Runge kutta 2nd Order
Runge kutta 2nd OrderRunge kutta 2nd Order
Runge kutta 2nd Order
 
introduction to Numerical Analysis
introduction to Numerical Analysisintroduction to Numerical Analysis
introduction to Numerical Analysis
 
Power series
Power series Power series
Power series
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler method
 
Jacobi method
Jacobi methodJacobi method
Jacobi method
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
B.tech ii unit-1 material curve tracing
B.tech ii unit-1 material curve tracingB.tech ii unit-1 material curve tracing
B.tech ii unit-1 material curve tracing
 
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
NUMERICAL METHOD AND ITS APPLICATION
NUMERICAL METHOD AND ITS APPLICATIONNUMERICAL METHOD AND ITS APPLICATION
NUMERICAL METHOD AND ITS APPLICATION
 
Application of numerical method
Application of numerical methodApplication of numerical method
Application of numerical method
 

Andere mochten auch

Application of Numerical method in Real Life
Application of Numerical method in Real LifeApplication of Numerical method in Real Life
Application of Numerical method in Real LifeTaqwa It Center
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Asad Ali
 
Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2Dr. Nirav Vyas
 
Numerical analysis (Bisectional method) application
Numerical analysis (Bisectional method) applicationNumerical analysis (Bisectional method) application
Numerical analysis (Bisectional method) applicationMonsur Ahmed Shafiq
 
Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3Dr. Nirav Vyas
 
Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Dr. Nirav Vyas
 
NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)krishnapriya R
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Asad Ali
 
Math1003 1.17 - Truncation, Rounding, Overflow, & Conversion Error
Math1003 1.17 - Truncation, Rounding, Overflow, & Conversion ErrorMath1003 1.17 - Truncation, Rounding, Overflow, & Conversion Error
Math1003 1.17 - Truncation, Rounding, Overflow, & Conversion Errorgcmath1003
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical MethodsTeja Ande
 
Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equationsaman1894
 
APPLICATION OF PARTIAL DIFFERENTIATION
APPLICATION OF PARTIAL DIFFERENTIATIONAPPLICATION OF PARTIAL DIFFERENTIATION
APPLICATION OF PARTIAL DIFFERENTIATIONDhrupal Patel
 
Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equationsAhmed Haider
 
Roots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsRoots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsMohammad Tawfik
 
Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal intervalDr. Nirav Vyas
 

Andere mochten auch (20)

APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZEAPPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
 
Application of Numerical method in Real Life
Application of Numerical method in Real LifeApplication of Numerical method in Real Life
Application of Numerical method in Real Life
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)
 
Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2Numerical Methods - Oridnary Differential Equations - 2
Numerical Methods - Oridnary Differential Equations - 2
 
Numerical analysis (Bisectional method) application
Numerical analysis (Bisectional method) applicationNumerical analysis (Bisectional method) application
Numerical analysis (Bisectional method) application
 
Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3Numerical Methods - Oridnary Differential Equations - 3
Numerical Methods - Oridnary Differential Equations - 3
 
Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1Numerical Methods - Oridnary Differential Equations - 1
Numerical Methods - Oridnary Differential Equations - 1
 
bisection method
bisection methodbisection method
bisection method
 
NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2
 
Error 2015 lamichhaneji
Error 2015 lamichhanejiError 2015 lamichhaneji
Error 2015 lamichhaneji
 
Math1003 1.17 - Truncation, Rounding, Overflow, & Conversion Error
Math1003 1.17 - Truncation, Rounding, Overflow, & Conversion ErrorMath1003 1.17 - Truncation, Rounding, Overflow, & Conversion Error
Math1003 1.17 - Truncation, Rounding, Overflow, & Conversion Error
 
newton raphson method
newton raphson methodnewton raphson method
newton raphson method
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical Methods
 
Bisection method
Bisection methodBisection method
Bisection method
 
Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equations
 
APPLICATION OF PARTIAL DIFFERENTIATION
APPLICATION OF PARTIAL DIFFERENTIATIONAPPLICATION OF PARTIAL DIFFERENTIATION
APPLICATION OF PARTIAL DIFFERENTIATION
 
Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equations
 
Roots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsRoots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open Methods
 
Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal interval
 

Ähnlich wie Engineering Numerical Analysis Lecture-1

Ga based selective harmonic minimization of a 11 level
Ga based selective harmonic minimization of a 11 levelGa based selective harmonic minimization of a 11 level
Ga based selective harmonic minimization of a 11 leveleSAT Publishing House
 
Litvinenko, Uncertainty Quantification - an Overview
Litvinenko, Uncertainty Quantification - an OverviewLitvinenko, Uncertainty Quantification - an Overview
Litvinenko, Uncertainty Quantification - an OverviewAlexander Litvinenko
 
Opt Assgnment #-1 PPTX.pptx
Opt Assgnment #-1 PPTX.pptxOpt Assgnment #-1 PPTX.pptx
Opt Assgnment #-1 PPTX.pptxAbdellaKarime
 
Numerical simulaton of axial flow fan using gambit and
Numerical simulaton of axial flow fan using gambit andNumerical simulaton of axial flow fan using gambit and
Numerical simulaton of axial flow fan using gambit andeSAT Publishing House
 
Aplicaciones de la derivada en la carrera de ingeniería mecánica
Aplicaciones de la derivada en la carrera de ingeniería mecánicaAplicaciones de la derivada en la carrera de ingeniería mecánica
Aplicaciones de la derivada en la carrera de ingeniería mecánicaPeterParreo
 
Analysis of convection diffusion problems at various peclet numbers using fin...
Analysis of convection diffusion problems at various peclet numbers using fin...Analysis of convection diffusion problems at various peclet numbers using fin...
Analysis of convection diffusion problems at various peclet numbers using fin...Alexander Decker
 
Presentation_IMECE_20121.pptx
Presentation_IMECE_20121.pptxPresentation_IMECE_20121.pptx
Presentation_IMECE_20121.pptxssuser8e1fef
 
Comparison of MOC and Lax FDE for simulating transients in Pipe Flows
Comparison of  MOC and Lax FDE for simulating transients in Pipe FlowsComparison of  MOC and Lax FDE for simulating transients in Pipe Flows
Comparison of MOC and Lax FDE for simulating transients in Pipe FlowsIRJET Journal
 
Numerical Investigation of Forced Convection cooling of Electrical enclosure ...
Numerical Investigation of Forced Convection cooling of Electrical enclosure ...Numerical Investigation of Forced Convection cooling of Electrical enclosure ...
Numerical Investigation of Forced Convection cooling of Electrical enclosure ...IJERA Editor
 
Buckling and Pull-In Instability of Multi-Walled Carbon Nanotube Probes Near ...
Buckling and Pull-In Instability of Multi-Walled Carbon Nanotube Probes Near ...Buckling and Pull-In Instability of Multi-Walled Carbon Nanotube Probes Near ...
Buckling and Pull-In Instability of Multi-Walled Carbon Nanotube Probes Near ...IJERA Editor
 
introduction-to-numerical-methods-in-chemical-engineering
 introduction-to-numerical-methods-in-chemical-engineering introduction-to-numerical-methods-in-chemical-engineering
introduction-to-numerical-methods-in-chemical-engineeringTalal Ashraf
 
Numerical Solution of Diffusion Equation by Finite Difference Method
Numerical Solution of Diffusion Equation by Finite Difference MethodNumerical Solution of Diffusion Equation by Finite Difference Method
Numerical Solution of Diffusion Equation by Finite Difference Methodiosrjce
 
Development of Hill Chart diagram for Francis turbine of Jhimruk Hydropower u...
Development of Hill Chart diagram for Francis turbine of Jhimruk Hydropower u...Development of Hill Chart diagram for Francis turbine of Jhimruk Hydropower u...
Development of Hill Chart diagram for Francis turbine of Jhimruk Hydropower u...Suman Sapkota
 
Determination of shock losses and pressure losses in ug mine openings (1)
Determination of shock losses and pressure losses in ug mine openings (1)Determination of shock losses and pressure losses in ug mine openings (1)
Determination of shock losses and pressure losses in ug mine openings (1)Safdar Ali
 

Ähnlich wie Engineering Numerical Analysis Lecture-1 (20)

Ga based selective harmonic minimization of a 11 level
Ga based selective harmonic minimization of a 11 levelGa based selective harmonic minimization of a 11 level
Ga based selective harmonic minimization of a 11 level
 
Litvinenko, Uncertainty Quantification - an Overview
Litvinenko, Uncertainty Quantification - an OverviewLitvinenko, Uncertainty Quantification - an Overview
Litvinenko, Uncertainty Quantification - an Overview
 
NA 2.ppt
NA 2.pptNA 2.ppt
NA 2.ppt
 
Respose surface methods
Respose surface methodsRespose surface methods
Respose surface methods
 
Opt Assgnment #-1 PPTX.pptx
Opt Assgnment #-1 PPTX.pptxOpt Assgnment #-1 PPTX.pptx
Opt Assgnment #-1 PPTX.pptx
 
Numerical simulaton of axial flow fan using gambit and
Numerical simulaton of axial flow fan using gambit andNumerical simulaton of axial flow fan using gambit and
Numerical simulaton of axial flow fan using gambit and
 
Probability
ProbabilityProbability
Probability
 
2. SIT,DCM
2. SIT,DCM2. SIT,DCM
2. SIT,DCM
 
Aplicaciones de la derivada en la carrera de ingeniería mecánica
Aplicaciones de la derivada en la carrera de ingeniería mecánicaAplicaciones de la derivada en la carrera de ingeniería mecánica
Aplicaciones de la derivada en la carrera de ingeniería mecánica
 
Analysis of convection diffusion problems at various peclet numbers using fin...
Analysis of convection diffusion problems at various peclet numbers using fin...Analysis of convection diffusion problems at various peclet numbers using fin...
Analysis of convection diffusion problems at various peclet numbers using fin...
 
Presentation_IMECE_20121.pptx
Presentation_IMECE_20121.pptxPresentation_IMECE_20121.pptx
Presentation_IMECE_20121.pptx
 
Comparison of MOC and Lax FDE for simulating transients in Pipe Flows
Comparison of  MOC and Lax FDE for simulating transients in Pipe FlowsComparison of  MOC and Lax FDE for simulating transients in Pipe Flows
Comparison of MOC and Lax FDE for simulating transients in Pipe Flows
 
4th Semester Mechanical Engineering (2013-June) Question Papers
4th Semester Mechanical Engineering (2013-June) Question Papers 4th Semester Mechanical Engineering (2013-June) Question Papers
4th Semester Mechanical Engineering (2013-June) Question Papers
 
Numerical Investigation of Forced Convection cooling of Electrical enclosure ...
Numerical Investigation of Forced Convection cooling of Electrical enclosure ...Numerical Investigation of Forced Convection cooling of Electrical enclosure ...
Numerical Investigation of Forced Convection cooling of Electrical enclosure ...
 
Buckling and Pull-In Instability of Multi-Walled Carbon Nanotube Probes Near ...
Buckling and Pull-In Instability of Multi-Walled Carbon Nanotube Probes Near ...Buckling and Pull-In Instability of Multi-Walled Carbon Nanotube Probes Near ...
Buckling and Pull-In Instability of Multi-Walled Carbon Nanotube Probes Near ...
 
introduction-to-numerical-methods-in-chemical-engineering
 introduction-to-numerical-methods-in-chemical-engineering introduction-to-numerical-methods-in-chemical-engineering
introduction-to-numerical-methods-in-chemical-engineering
 
Numerical Solution of Diffusion Equation by Finite Difference Method
Numerical Solution of Diffusion Equation by Finite Difference MethodNumerical Solution of Diffusion Equation by Finite Difference Method
Numerical Solution of Diffusion Equation by Finite Difference Method
 
Development of Hill Chart diagram for Francis turbine of Jhimruk Hydropower u...
Development of Hill Chart diagram for Francis turbine of Jhimruk Hydropower u...Development of Hill Chart diagram for Francis turbine of Jhimruk Hydropower u...
Development of Hill Chart diagram for Francis turbine of Jhimruk Hydropower u...
 
MULTI-OBJECTIVE ANALYSIS OF INTEGRATED SUPPLY CHAIN PROBLEM
MULTI-OBJECTIVE ANALYSIS OF INTEGRATED SUPPLY CHAIN PROBLEMMULTI-OBJECTIVE ANALYSIS OF INTEGRATED SUPPLY CHAIN PROBLEM
MULTI-OBJECTIVE ANALYSIS OF INTEGRATED SUPPLY CHAIN PROBLEM
 
Determination of shock losses and pressure losses in ug mine openings (1)
Determination of shock losses and pressure losses in ug mine openings (1)Determination of shock losses and pressure losses in ug mine openings (1)
Determination of shock losses and pressure losses in ug mine openings (1)
 

Mehr von Muhammad Waqas

Image processing (Signal Processing)
Image processing (Signal Processing)Image processing (Signal Processing)
Image processing (Signal Processing)Muhammad Waqas
 
Windows 98 vs Windows 200
Windows 98 vs Windows 200Windows 98 vs Windows 200
Windows 98 vs Windows 200Muhammad Waqas
 
Introduction to CPU registers
Introduction to CPU registersIntroduction to CPU registers
Introduction to CPU registersMuhammad Waqas
 
Six exercises to relieve back pain at your workplace
Six exercises to relieve back pain at your workplaceSix exercises to relieve back pain at your workplace
Six exercises to relieve back pain at your workplaceMuhammad Waqas
 
Object Oriented Programming Using C++
Object Oriented Programming Using C++Object Oriented Programming Using C++
Object Oriented Programming Using C++Muhammad Waqas
 
Chapter7 Computer Networks
Chapter7 Computer NetworksChapter7 Computer Networks
Chapter7 Computer NetworksMuhammad Waqas
 
Chapter4 Data Processing
Chapter4 Data ProcessingChapter4 Data Processing
Chapter4 Data ProcessingMuhammad Waqas
 
Chapter1 introduction to computer systems
Chapter1 introduction to computer systemsChapter1 introduction to computer systems
Chapter1 introduction to computer systemsMuhammad Waqas
 

Mehr von Muhammad Waqas (9)

Image processing (Signal Processing)
Image processing (Signal Processing)Image processing (Signal Processing)
Image processing (Signal Processing)
 
Windows 98 vs Windows 200
Windows 98 vs Windows 200Windows 98 vs Windows 200
Windows 98 vs Windows 200
 
Introduction to CPU registers
Introduction to CPU registersIntroduction to CPU registers
Introduction to CPU registers
 
Six exercises to relieve back pain at your workplace
Six exercises to relieve back pain at your workplaceSix exercises to relieve back pain at your workplace
Six exercises to relieve back pain at your workplace
 
Object Oriented Programming Using C++
Object Oriented Programming Using C++Object Oriented Programming Using C++
Object Oriented Programming Using C++
 
Chapter7 Computer Networks
Chapter7 Computer NetworksChapter7 Computer Networks
Chapter7 Computer Networks
 
Chapter5 Storage
Chapter5 StorageChapter5 Storage
Chapter5 Storage
 
Chapter4 Data Processing
Chapter4 Data ProcessingChapter4 Data Processing
Chapter4 Data Processing
 
Chapter1 introduction to computer systems
Chapter1 introduction to computer systemsChapter1 introduction to computer systems
Chapter1 introduction to computer systems
 

Kürzlich hochgeladen

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Kürzlich hochgeladen (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

Engineering Numerical Analysis Lecture-1

  • 1. Engr. Abdul Khaliq Department of Irrigation and Drainage Faculty of Agricultural Engineering & Technology University of Agriculture Faisalabad Engr Abdul Khaliq 13/10/2014
  • 2. Objectives:  In this course, students will be able to demonstrate programming proficiency using structured programming techniques to implement numerical methods for solutions using computer-based programming techniques. Engr Abdul Khaliq 23/10/2014
  • 3. Course OutlineTheory:  Mathematical preliminaries,  Solution of equations in one variable,  Interpolation and polynomial Approximation,  Numerical differentiation and integration,  Initial value problems for ordinary differential equations,  Direct methods for solving linear systems,  Iterative techniques in Matrix algebra,  Solution of non-linear equations.  Approximation theory;  Eigen values and vector; Practical: Programming of different numerical techniques, direct methods, iterative techniques, Eigen values and vectors. Suggested Readings: 1. Burden, R. L. and J. D. Faires, 2011. Numerical Analysis. PW Publishing Company, Boston, USA. 2. Chapra, S. C., and Canal, R.P., 2 010.,Numerical Methods for Engineers, 6th Edition, McGraw Hill Inc. 3. Mumtaz Khan 2008 Numerical Methods for Engineering Science and Mathematics, 2nd Edition.. Engr Abdul Khaliq 33/10/2014
  • 4. NUMERICAL APPROXIMATIONS Numerical methods is an area of study in mathematics that discusses the solutions to various mathematical problems involving differential equations, curve fittings, integrals, eigenvalues, and root findings through approximations rather than exact solutions. Engr Abdul Khaliq 43/10/2014
  • 5. Mathematical Preliminaries and Error Analysis In beginning chemistry courses, the ideal gas law, PV = NRT, Suppose two experiments are conducted to test this law, using the same gas in each case. In the first experiment,  P = 1.00 atm, V = 0.100 m3,  N = 0.00420 mol, R = 0.08206.  The ideal gas law predicts the temperature of the gas to be  When we measure the temperature of the gas however, we find that the true temperature is 15⁰C. Engr Abdul Khaliq 5 CKT RT PV T 1715.291 )082460.0)(00420.0( )100.0)(00.1( 3/10/2014
  • 6. Mathematical Preliminaries and Error Analysis (continued) Engr Abdul Khaliq 6 We then repeat the experiment using the same values of R and N, but increase the pressure by a factor of two and reduce the volume by the same factor. The product PV remains the same, so the predicted temperature is still 17⁰C. But now we find that the actual temperature of the gas is 19 ⁰C. 3/10/2014
  • 7. Review of Calculus  To solve problems that cannot be solved exactly due x u 2 2 2 1 Engr Abdul Khaliq 73/10/2014
  • 9. Review of Calculus Engr Abdul Khaliq 93/10/2014
  • 10. 10 Propagation of Errors In numerical methods, the calculations are not made with exact numbers. How do these inaccuracies propagate through the calculations? Engr Abdul Khaliq3/10/2014
  • 11. Engr Abdul Khaliq 11 Example 1: Find the bounds for the propagation in adding two numbers. For example if one is calculating X +Y where X = 1.5 0.05 Y = 3.4 0.04 Solution Maximum possible value of X = 1.55 and Y = 3.44 Maximum possible value of X + Y = 1.55 + 3.44 = 4.99 Minimum possible value of X = 1.45 and Y = 3.36. Minimum possible value of X + Y = 1.45 + 3.36 = 4.81 Hence 4.81 ≤ X + Y ≤4.99. 3/10/2014
  • 12. Engr Abdul Khaliq 12 Propagation of Errors In Formulas f nn XXXXX ,,.......,,, 1321 f n n n n X X f X X f X X f X X f f 1 1 2 2 1 1 ....... If is a function of several variables then the maximum possible value of the error in is 3/10/2014
  • 13. Engr Abdul Khaliq 13 Example 2: The strain in an axial member of a square cross- section is given by Given Find the maximum possible error in the measured strain. Eh F 2 N9.072F mm1.04h GPa5.170E 3/10/2014
  • 15. 15 EhF 2 1 Eh F h 3 2 22 Eh F E E Eh F h Eh F F Eh E 2232 21 9 2923 933923 105.1 )1070()104( 72 0001.0 )1070()104( 722 9.0 )1070()104( 1 3955.5 Thus Hence )3955.5286.64( Engr Abdul Khaliq3/10/2014
  • 16. Example 3: Subtraction of numbers that are nearly equal can create unwanted inaccuracies. Using the formula for error propagation, show that this is true. Solution Let Then So the relative change is yxz y y z x x z z yx )1()1( yx yx yx z z Engr Abdul Khaliq 163/10/2014
  • 17. Example 3: For example if 001.02x 001.0003.2y |003.22| 001.0001.0 z z = 0.6667 = 66.67% Engr Abdul Khaliq 173/10/2014
  • 18. Sources of Error Engr Abdul Khaliq 18 Two sources of numerical error 1) Round off error 2) Truncation error The error that is produced when a calculator or computer is used to perform real-number calculations is called round-off error. 3/10/2014
  • 19. 19 Round off Error  Caused by representing a number approximately 333333.0 3 1 ...4142.12 Engr Abdul Khaliq3/10/2014
  • 20. 20 Problems created by round off error  Drown attack miss the target .Why? Engr Abdul Khaliq3/10/2014
  • 21. 21 Problem with Patriot missile  Clock cycle of 1/10 seconds was represented in 24-bit fixed point register created an error of 9.5 x 10-8 seconds.  The battery was on for 100 consecutive hours, thus causing an inaccuracy of 1hr 3600s 100hr 0.1s s 109.5 8 s342.0 Engr Abdul Khaliq3/10/2014
  • 22. 22 Problem (cont.)  The shift calculated in the ranging system of the missile was 687 meters.  The target was considered to be out of range at a distance greater than 137 meters. Engr Abdul Khaliq3/10/2014
  • 23. 23 Effect of Carrying Significant Digits in Calculations Engr Abdul Khaliq 3/10/2014
  • 24. 24 Truncation error Error caused by truncating or approximating a mathematical procedure. Engr Abdul Khaliq3/10/2014
  • 25. 25 Example of Truncation Error Taking only a few terms of a Maclaurin series to approximate .................... !3!2 1 32 xx xex x e If only 3 terms are used, !2 1 2 x xeErrorTruncation x Engr Abdul Khaliq3/10/2014
  • 26. 26 Another Example of Truncation Error Using a finite x to approximate )(xf x xfxxf xf )()( )( P Q secant line tangent line Figure 1. Approximate derivative using finite Δx Engr Abdul Khaliq3/10/2014
  • 27. 27 Another Example of Truncation Error Using finite rectangles to approximate an integral. y = x 2 0 30 60 90 0 1.5 3 4.5 6 7.5 9 10.5 12 y x Engr Abdul Khaliq3/10/2014
  • 28. 28 Example 1 —Maclaurin series Calculate the value of 2.1 e with an absolute relative approximate error of less than 1%. ................... !3 2.1 !2 2.1 2.11 32 2.1 e n 1 1 __ ___ 2 2.2 1.2 54.545 3 2.92 0.72 24.658 4 3.208 0.288 8.9776 5 3.2944 0.0864 2.6226 6 3.3151 0.020736 0.62550 aE %a 2.1 e 6 terms are required. How many are required to get at least 1 significant digit correct in your answer? Engr Abdul Khaliq3/10/2014
  • 29. 29 Example 2 —Differentiation Find )3(f for 2 )( xxf using x xfxxf xf )()( )( and 2.0x 2.0 )3()2.03( )3(' ff f 2.0 )3()2.3( ff 2.0 32.3 22 2.0 924.10 2.0 24.1 2.6 The actual value is ,2)(' xxf 632)3(' f Truncation error is then, 2.02.66 Can you find the truncation error with 1.0xEngr Abdul Khaliq3/10/2014
  • 30. 30 Example 3 — Integration Use two rectangles of equal width to approximate the area under the curve for 2 )( xxf over the interval ]9,3[ y = x 2 0 30 60 90 0 3 6 9 12 y x 9 3 2 dxx Engr Abdul Khaliq3/10/2014
  • 31. 31 Integration example (cont.) )69()()36()( 6 2 3 2 9 3 2 xx xxdxx 3)6(3)3( 22 13510827 Choosing a width of 3, we have Actual value is given by 9 3 2 dxx 9 3 3 3 x 234 3 39 33 Truncation error is then 99135234 Can you find the truncation error with 4 rectangles?Engr Abdul Khaliq3/10/2014
  • 32. Steps in Solving an Engineering Problem Engr Abdul Khaliq 323/10/2014
  • 33. How do we solve an engineering problem? Engr Abdul Khaliq 33 Problem Description Mathematical Model Solution of Mathematical Model Using the Solution 3/10/2014
  • 34. Mathematical Procedures  Nonlinear Equations  Differentiation  Simultaneous Linear Equations  Curve Fitting  Interpolation  Regression  Integration  Ordinary Differential Equations  Other Advanced Mathematical Procedures:  Partial Differential Equations  Optimization  Fast Fourier Transforms Engr Abdul Khaliq 343/10/2014
  • 35. Nonlinear Equations Engr Abdul Khaliq 35 How much of the floating ball is under water? 010993.3165.0 423 xx Diameter=0.11m Specific Gravity=0.6 3/10/2014
  • 36. Nonlinear Equations Engr Abdul Khaliq 36 How much of the floating ball is under the water? 010993.3165.0)( 423 xxxf 3/10/2014
  • 37. Differentiation t. t v(t) 89 50001016 1016 ln2200 4 4 Engr Abdul Khaliq 37 What is the acceleration at t=7 seconds? dt dv a 3/10/2014
  • 38. Differentiation Time (s) 5 8 12 Vel (m/s) 106 177 600 dt dv a Engr Abdul Khaliq 38 What is the acceleration at t=7 seconds? 3/10/2014
  • 39. Simultaneous Linear Equations Time (s) 5 8 12 Vel (m/s) 106 177 600 Engr Abdul Khaliq 39 Find the velocity profile, given ,)( 2 cbtattv Three simultaneous linear equations 106525 cba 125 t 177864 cba 60012144 cba 3/10/2014
  • 40. Interpolation Time (s) 5 8 12 Vel (m/s) 106 177 600 Engr Abdul Khaliq 40 What is the velocity of the rocket at t=7 seconds? 3/10/2014
  • 41. Regression Engr Abdul Khaliq 41 Thermal expansion coefficient data for cast steel 3/10/2014
  • 42. Regression (cont) Engr Abdul Khaliq 423/10/2014
  • 43. Integration Engr Abdul Khaliq 43 fluid room T T dTDD Finding the diametric contraction in a steel shaft when dipped in liquid nitrogen. 3/10/2014
  • 44. Reading Engr Abdul Khaliq 44 1. Burden, R. L. and J. D. Faires, 2011. Numerical Analysis. PW Publishing Company, Boston, USA. 2. Chapra, S. C., and Canal, R.P., 2 010.,Numerical Methods for Engineers, 6th Edition, McGraw Hill Inc. 3. Mumtaz Khan 2008 Numerical Methods for Engineering Science and Mathematics, 2nd Edition.. THE END 3/10/2014