SlideShare a Scribd company logo
Numerical Analysis I
(Math 311)
For: Rift Valley University
Second Year Computer Science
Student
By:Habtamu Garoma
Email address: habte200@gmail.com
Chapter 1
Basic concepts in error
estimation
Numerical analysis
o is the branch of mathematics that is used to
find approximations to difficult problems
such as:
 finding the roots of non−linear equations
 integration involving complex expressions
 solving differential equations for which
analytical solutions do not exist
o It is applied to a wide variety of disciplines
such as :
-business,
-all fields of engineering,
-computer science,
-education,
-geology,
-meteorology and others.
o It is the area of mathematics and computer
science that creates, analyzes, and
implements algorithms for solving numerically
the problems of continuous mathematics.
Chapter 1
Basic concepts in error
estimation
Source of Error
1.1. Sources of error
Numerical errors arise from the use of approximations to
represent exact mathematical operations and quantities.
Truncation errors: which result when
approximations are used to represent exact
mathematical procedures.
 Round-off errors: which result when numbers
having limited significant figures are used to represent
exact numbers.
Round off Error
 which result when numbers having
limited significant figures are used to
represent exact numbers.
Caused by representing a number
approximately.
Example:
For both types, the relationship
between the exact result and the
approximation can be formulated as:
True value = approximation + error
= true value − approximation
where is used to designate the exact
value of the error
 t
E
Truncation error
• Error caused by truncating or
approximating a mathematical
procedure.
Example of Truncation Error
1. Taking only a few terms of a
Maclaurin series to
If only 3 terms are used,
2. Using a finite to approximate
• Using finite rectangles to approximate
an integral.
Example 1: Maclaurin series
Calculate the value of with an absolute
relative approximate error of less than 1%.
6 terms are required. How many are required
to get at least 1 significant digit correct in
your answer?
Example 2: Diffrentiation
Find for using
and
The actual value is
Truncation error is then,
Can you find the truncation error with
?
Example 2: Integrations
Use two rectangles of equal width to
approximate the area under the curve
for over the interval
2
)
( x
x
f 
Integration example (cont.)
• Choosing a width of 3, we have
 Actual value is given by
Truncation error is then
Can you find the truncation error with 4
rectangles?
Approximations and Round-Off Errors
• For many engineering problems, we cannot
obtain analytical solutions.
• Numerical methods yield approximate results,
results that are close to the exact analytical
solution. We cannot exactly compute the errors
associated with numerical methods.
– Only rarely given data are exact, since they
originate from measurements. Therefore
there is probably error in the input
information.
Cont’d
o Algorithm itself usually introduces errors as
well, e.g., unavoidable round-offs, etc
o The output information will then contain
error from both of these sources.
• How confident we are in our approximate
result?
• The question is “how much error is
present in our calculation and is it
tolerable?”
• Accuracy: How close is a computed or
measured value to the true value
• Precision (or reproducibility): How close is a
computed or measured value to previously
computed or measured values.
• Inaccuracy (or bias): A systematic deviation
from the actual value.
• Imprecision (or uncertainty): Magnitude of
scatter.
Chapter assignment character assignemetb
Significant Figures
 Number of significant figures indicates
precision. Significant digits of a number are
those that can be used with confidence.
e.g., the number of certain digits plus one
estimated digit.
 53,800 How many significant figures?
5.38 x 104 3
5.380 x 104 4
5.3800 x 104 5
Zeros are sometimes used to locate the
decimal point not significant figures.
0.00001753 4
0.0001753 4
0.001753 4
Error Definitions
True Value = Approximation + Error
Et = True value – Approximation (+/-)
True error
• For numerical methods, the true value
will be known only when we deal with
functions that can be solved analytically
(simple systems).
• In real world applications, we usually
not know the answer a priori. Then
Con’d
Iterative Approach, example Newton's
method
• Use absolute value.
• Computations are repeated until
stopping criterion is satisfied
• If the following criterion is met
Round-off Errors
 Numbers such as p, e, or cannot be expressed
by a fixed number of significant figures.
you can be sure that the result is correct to at
least n significant figures.
Accuracy and Precision
The errors associated with both calculations
and measurements can be characterized with
regard to their accuracy and precision.
Accuracy: refers to how closely a computed or
measured value agrees with the true value.
Precision: refers to how closely individual
computed or measured values agree with
each other.
FIGURE 3.2: An example from marksmanship illustrating the concepts of
accuracy and precision. (a) Inaccurate and imprecise; (b) accurate and
imprecise; (c) inaccurate and precise; (d) accurate and precise.
Absolute and Relative Errors
Absolute Error ( )
Absolute error=
Relative Errors ( )
Exact value Approximate value

100%
r
Exact value Approximate value
E x
Exact value


a
E
r
E
current approximation previous approximation
100%
current approximation
a X



Round of Errors
 Round-off errors: originate from the fact that
computers retain only a fixed number of
significant figures during a calculation.
 Numbers such as π, e, or cannot be
expressed by a fixed number of significant
figures.
 Therefore, they cannot be represented
exactly by the computer.
7
Propagation of Error
 The purpose of this section is to study how
errors in numbers can propagate through
mathematical functions.
 If we multiply two numbers that have errors,
we would like to estimate the error in the
product.
* Functions of a Single Variable
* Functions of More than One Variable
Suppose that we have a function f (x) that is
dependent on a single independent variable x.
Assume that is an approximation of x.
to assess the effect of the discrepancy between
x and on the value of the function.
We would like to estimate by
By expansion of Taylor’s series, we obtain:
x
( ) ( ) ( )
f x f x f x
 
'
( ) ( ) , where
f x f x x x x x
  
FIGURE 4.7
Graphical depiction of first order error propagation
Example: Given a value of = 2.5 with an
error of = 0.01, estimate the resulting error
in the function .
Ans: f(2.5) = 15.625 ± 0.1875
Functions of More than One Variable
For n independent variables
having errors the following
general relationship holds:
x
3
( )
f x x

x
n
1 2
, ,...., n
x x x
1 2
, ,..., n
x x x
  
1 2 1 2
1 2
( , ,..., ) ...
n n
n
f f f
f x x x x x x
x x x
  
       
  

More Related Content

PPT
Numerical Method
PPTX
Error analysis
PPTX
numerical chapter 2 numerical method and analysis.pptx
PPTX
Numerical approximation
PDF
Applied numerical methods lec3
PPTX
Error Discussion: Types, Causes, and Solutions
Numerical Method
Error analysis
numerical chapter 2 numerical method and analysis.pptx
Numerical approximation
Applied numerical methods lec3
Error Discussion: Types, Causes, and Solutions

Similar to Chapter assignment character assignemetb (20)

PPTX
Numerical Methods.pptx
PPTX
PDF
numerical analysis
PPTX
Numerical approximation
PPT
MATH685_Sp10_lengdrfjffvbbdgghhbfnhfghmmm
PPT
introduction to Numerical Analysis
PPTX
Machine learning session4(linear regression)
PPT
Numerical Analysis And Linear Algebra
PPT
lecture01.ppt
PPTX
Approximation and error
PPTX
Approximation and error
PPTX
Error(Computer Oriented Numerical and Statistical Method)
PDF
NUMERICA METHODS 1 final touch summary for test 1
PDF
Numerical analysis using Scilab: Error analysis and propagation
PDF
Interpolation and-its-application
PPTX
interpolation-and-its-application-180107160107.pptx
PDF
Engineering Numerical Analysis-Introduction.pdf
PPT
VCE Physics: Dealing with numerical measurments
PDF
Daa chapter 1
PPTX
ERROR ESTIMATION-1 for numerical methods.pptx
Numerical Methods.pptx
numerical analysis
Numerical approximation
MATH685_Sp10_lengdrfjffvbbdgghhbfnhfghmmm
introduction to Numerical Analysis
Machine learning session4(linear regression)
Numerical Analysis And Linear Algebra
lecture01.ppt
Approximation and error
Approximation and error
Error(Computer Oriented Numerical and Statistical Method)
NUMERICA METHODS 1 final touch summary for test 1
Numerical analysis using Scilab: Error analysis and propagation
Interpolation and-its-application
interpolation-and-its-application-180107160107.pptx
Engineering Numerical Analysis-Introduction.pdf
VCE Physics: Dealing with numerical measurments
Daa chapter 1
ERROR ESTIMATION-1 for numerical methods.pptx
Ad

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PPTX
Lesson notes of climatology university.
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Presentation on HIE in infants and its manifestations
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
master seminar digital applications in india
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Institutional Correction lecture only . . .
PDF
01-Introduction-to-Information-Management.pdf
Cell Structure & Organelles in detailed.
Lesson notes of climatology university.
Abdominal Access Techniques with Prof. Dr. R K Mishra
GDM (1) (1).pptx small presentation for students
Final Presentation General Medicine 03-08-2024.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
202450812 BayCHI UCSC-SV 20250812 v17.pptx
O7-L3 Supply Chain Operations - ICLT Program
Chinmaya Tiranga quiz Grand Finale.pdf
Microbial diseases, their pathogenesis and prophylaxis
Presentation on HIE in infants and its manifestations
102 student loan defaulters named and shamed – Is someone you know on the list?
master seminar digital applications in india
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Institutional Correction lecture only . . .
01-Introduction-to-Information-Management.pdf
Ad

Chapter assignment character assignemetb

  • 1. Numerical Analysis I (Math 311) For: Rift Valley University Second Year Computer Science Student By:Habtamu Garoma Email address: habte200@gmail.com
  • 2. Chapter 1 Basic concepts in error estimation
  • 3. Numerical analysis o is the branch of mathematics that is used to find approximations to difficult problems such as:  finding the roots of non−linear equations  integration involving complex expressions  solving differential equations for which analytical solutions do not exist
  • 4. o It is applied to a wide variety of disciplines such as : -business, -all fields of engineering, -computer science, -education, -geology, -meteorology and others. o It is the area of mathematics and computer science that creates, analyzes, and implements algorithms for solving numerically the problems of continuous mathematics.
  • 5. Chapter 1 Basic concepts in error estimation
  • 7. 1.1. Sources of error Numerical errors arise from the use of approximations to represent exact mathematical operations and quantities. Truncation errors: which result when approximations are used to represent exact mathematical procedures.  Round-off errors: which result when numbers having limited significant figures are used to represent exact numbers.
  • 8. Round off Error  which result when numbers having limited significant figures are used to represent exact numbers. Caused by representing a number approximately. Example:
  • 9. For both types, the relationship between the exact result and the approximation can be formulated as: True value = approximation + error = true value − approximation where is used to designate the exact value of the error  t E
  • 10. Truncation error • Error caused by truncating or approximating a mathematical procedure. Example of Truncation Error 1. Taking only a few terms of a Maclaurin series to
  • 11. If only 3 terms are used, 2. Using a finite to approximate
  • 12. • Using finite rectangles to approximate an integral.
  • 13. Example 1: Maclaurin series Calculate the value of with an absolute relative approximate error of less than 1%. 6 terms are required. How many are required to get at least 1 significant digit correct in your answer?
  • 14. Example 2: Diffrentiation Find for using and The actual value is Truncation error is then, Can you find the truncation error with ?
  • 15. Example 2: Integrations Use two rectangles of equal width to approximate the area under the curve for over the interval 2 ) ( x x f 
  • 16. Integration example (cont.) • Choosing a width of 3, we have  Actual value is given by Truncation error is then Can you find the truncation error with 4 rectangles?
  • 17. Approximations and Round-Off Errors • For many engineering problems, we cannot obtain analytical solutions. • Numerical methods yield approximate results, results that are close to the exact analytical solution. We cannot exactly compute the errors associated with numerical methods. – Only rarely given data are exact, since they originate from measurements. Therefore there is probably error in the input information.
  • 18. Cont’d o Algorithm itself usually introduces errors as well, e.g., unavoidable round-offs, etc o The output information will then contain error from both of these sources. • How confident we are in our approximate result? • The question is “how much error is present in our calculation and is it tolerable?”
  • 19. • Accuracy: How close is a computed or measured value to the true value • Precision (or reproducibility): How close is a computed or measured value to previously computed or measured values. • Inaccuracy (or bias): A systematic deviation from the actual value. • Imprecision (or uncertainty): Magnitude of scatter.
  • 21. Significant Figures  Number of significant figures indicates precision. Significant digits of a number are those that can be used with confidence. e.g., the number of certain digits plus one estimated digit.  53,800 How many significant figures? 5.38 x 104 3 5.380 x 104 4 5.3800 x 104 5
  • 22. Zeros are sometimes used to locate the decimal point not significant figures. 0.00001753 4 0.0001753 4 0.001753 4 Error Definitions True Value = Approximation + Error Et = True value – Approximation (+/-) True error
  • 23. • For numerical methods, the true value will be known only when we deal with functions that can be solved analytically (simple systems). • In real world applications, we usually not know the answer a priori. Then
  • 24. Con’d Iterative Approach, example Newton's method • Use absolute value. • Computations are repeated until stopping criterion is satisfied
  • 25. • If the following criterion is met Round-off Errors  Numbers such as p, e, or cannot be expressed by a fixed number of significant figures. you can be sure that the result is correct to at least n significant figures.
  • 26. Accuracy and Precision The errors associated with both calculations and measurements can be characterized with regard to their accuracy and precision. Accuracy: refers to how closely a computed or measured value agrees with the true value. Precision: refers to how closely individual computed or measured values agree with each other.
  • 27. FIGURE 3.2: An example from marksmanship illustrating the concepts of accuracy and precision. (a) Inaccurate and imprecise; (b) accurate and imprecise; (c) inaccurate and precise; (d) accurate and precise.
  • 28. Absolute and Relative Errors Absolute Error ( ) Absolute error= Relative Errors ( ) Exact value Approximate value  100% r Exact value Approximate value E x Exact value   a E r E current approximation previous approximation 100% current approximation a X   
  • 29. Round of Errors  Round-off errors: originate from the fact that computers retain only a fixed number of significant figures during a calculation.  Numbers such as π, e, or cannot be expressed by a fixed number of significant figures.  Therefore, they cannot be represented exactly by the computer. 7
  • 30. Propagation of Error  The purpose of this section is to study how errors in numbers can propagate through mathematical functions.  If we multiply two numbers that have errors, we would like to estimate the error in the product. * Functions of a Single Variable * Functions of More than One Variable
  • 31. Suppose that we have a function f (x) that is dependent on a single independent variable x. Assume that is an approximation of x. to assess the effect of the discrepancy between x and on the value of the function. We would like to estimate by By expansion of Taylor’s series, we obtain: x ( ) ( ) ( ) f x f x f x   ' ( ) ( ) , where f x f x x x x x   
  • 32. FIGURE 4.7 Graphical depiction of first order error propagation
  • 33. Example: Given a value of = 2.5 with an error of = 0.01, estimate the resulting error in the function . Ans: f(2.5) = 15.625 ± 0.1875 Functions of More than One Variable For n independent variables having errors the following general relationship holds: x 3 ( ) f x x  x n 1 2 , ,...., n x x x 1 2 , ,..., n x x x    1 2 1 2 1 2 ( , ,..., ) ... n n n f f f f x x x x x x x x x              