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?

Numerical methods and its applications
Numerical methods and its applicationsNumerical methods and its applications
Numerical methods and its applicationsHaiderParekh1
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationSunny Chauhan
 
Integration and its basic rules and function.
Integration and its basic rules and function.Integration and its basic rules and function.
Integration and its basic rules and function.Kartikey Rohila
 
NUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONSNUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONSGOWTHAMGOWSIK98
 
Math lecture 10 (Introduction to Integration)
Math lecture 10 (Introduction to Integration)Math lecture 10 (Introduction to Integration)
Math lecture 10 (Introduction to Integration)Osama Zahid
 
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
 
1575 numerical differentiation and integration
1575 numerical differentiation and integration1575 numerical differentiation and integration
1575 numerical differentiation and integrationDr Fereidoun Dejahang
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationMohammed_AQ
 
Simpson’s one third and weddle's rule
Simpson’s one third and weddle's ruleSimpson’s one third and weddle's rule
Simpson’s one third and weddle's rulezahid6
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical IntegrationTausif Shahanshah
 

Was ist angesagt? (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
 
Engineering mathematics 1
Engineering mathematics 1Engineering mathematics 1
Engineering mathematics 1
 
Differential equations
Differential equationsDifferential equations
Differential equations
 
Numerical methods and its applications
Numerical methods and its applicationsNumerical methods and its applications
Numerical methods and its applications
 
numerical methods
numerical methodsnumerical methods
numerical methods
 
Numerical method
Numerical methodNumerical method
Numerical method
 
Numerical Method 2
Numerical Method 2Numerical Method 2
Numerical Method 2
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
newton raphson method
newton raphson methodnewton raphson method
newton raphson method
 
Integration and its basic rules and function.
Integration and its basic rules and function.Integration and its basic rules and function.
Integration and its basic rules and function.
 
Optmization techniques
Optmization techniquesOptmization techniques
Optmization techniques
 
NUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONSNUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONS
 
Es272 ch3a
Es272 ch3aEs272 ch3a
Es272 ch3a
 
Math lecture 10 (Introduction to Integration)
Math lecture 10 (Introduction to Integration)Math lecture 10 (Introduction to Integration)
Math lecture 10 (Introduction to Integration)
 
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
 
1575 numerical differentiation and integration
1575 numerical differentiation and integration1575 numerical differentiation and integration
1575 numerical differentiation and integration
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Simpson’s one third and weddle's rule
Simpson’s one third and weddle's ruleSimpson’s one third and weddle's rule
Simpson’s one third and weddle's rule
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical Integration
 
Bisection method
Bisection methodBisection method
Bisection method
 

Andere mochten auch

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 Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differencesDr. Nirav Vyas
 
Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal intervalDr. Nirav Vyas
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation Meet Patel
 

Andere mochten auch (20)

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
 
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 Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differences
 
Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal interval
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation
 
Numerical Integration
Numerical IntegrationNumerical Integration
Numerical Integration
 

Ä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

Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptxmary850239
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 

Kürzlich hochgeladen (20)

Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 

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