Numerical Methods and Error Analysis: An Introduction, Lecture notes of Complex analysis

Numerical methods and error analysis, essential for solving complex mathematical equations in real-world systems. It covers floating-point numbers, rounding errors, and various error types like absolute, relative, and truncation errors. The document also discusses the degree of condition and stability of numerical methods, along with taylor series expansions. Includes assignment questions to test understanding and application of these concepts, making it a valuable resource for students in engineering and computational sciences.

Typology: Lecture notes

2023/2024

Uploaded on 09/18/2025

beyond-heart-mind-soul
beyond-heart-mind-soul ๐Ÿ‡ฐ๐Ÿ‡ผ

1 document

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
I-1
I - Introduction
โ€ข Modeling real systems involves converting the physical system into mathematical equations
that capture the embedded physics.
โ€ข The mathematical model often comprises complex and complicated equations that are
unmanageable analytically and lack closed-form and exact solutions. Thus, numerical
methods are essential for handling and solving such systems.
โ€ข Each problem can be approached using various numerical methods, each with its own set of
advantages, disadvantages, and levels of simplicity, complexity, and accuracy. Selecting the
appropriate method is crucial for effectively solving such problems.
โ€ข Computational tools like computers and calculators are commonly used for fast and accurate
numerical calculations. However, their accuracy is limited due to finite precision, rounding
errors, and algorithm stability.
Floating-Point Numbers and Rounding
โ€ข Fundamental concepts in numerical computing, deeply influencing the accuracy and
reliability of numerical calculations.
โ€ข Floating points: a way to represent real numbers in computations that can accommodate a
very wide range of values. It represents numbers using three components,
o Sign: indicating positive or negative.
o Exponent: scales the number.
o Mantissa: provides the precision of the number in the binary system.
๐‘๐‘ข๐‘š๐‘๐‘’๐‘Ÿ = ๐‘†๐‘–๐‘”๐‘› ร— ๐‘€๐‘Ž๐‘›๐‘ก๐‘–๐‘ ๐‘ ๐‘Ž ร— 2๐ธ๐‘ฅ๐‘๐‘œ๐‘›๐‘’๐‘›๐‘ก
โ€ข Rounding errors occur because of the need to round off numbers that cannot be exactly
represented with the available level of precision. Rounding can lead to several types of errors
in calculations.
o Rounding Error: this is the difference between the mathematically exact value of a
number and its rounded floating-point approximation. Even simple arithmetic operations
can accumulate noticeable rounding errors over many iterations or complex calculations.
o Precision Loss: when operating on numbers of vastly different magnitudes, precision
loss can occur, where significant digits of the smaller number are lost. For example, when
pf3
pf4
pf5

Partial preview of the text

Download Numerical Methods and Error Analysis: An Introduction and more Lecture notes Complex analysis in PDF only on Docsity!

I - Introduction

  • Modeling real systems involves converting the physical system into mathematical equations

that capture the embedded physics.

  • The mathematical model often comprises complex and complicated equations that are

unmanageable analytically and lack closed-form and exact solutions. Thus, numerical

methods are essential for handling and solving such systems.

  • Each problem can be approached using various numerical methods, each with its own set of

advantages, disadvantages, and levels of simplicity, complexity, and accuracy. Selecting the

appropriate method is crucial for effectively solving such problems.

  • Computational tools like computers and calculators are commonly used for fast and accurate

numerical calculations. However, their accuracy is limited due to finite precision, rounding

errors, and algorithm stability.

Floating-Point Numbers and Rounding

  • Fundamental concepts in numerical computing, deeply influencing the accuracy and

reliability of numerical calculations.

  • Floating points: a way to represent real numbers in computations that can accommodate a

very wide range of values. It represents numbers using three components,

o Sign : indicating positive or negative.

o Exponent : scales the number.

o Mantissa : provides the precision of the number in the binary system.

๐‘๐‘ข๐‘š๐‘๐‘’๐‘Ÿ = ๐‘†๐‘–๐‘”๐‘› ร— ๐‘€๐‘Ž๐‘›๐‘ก๐‘–๐‘ ๐‘ ๐‘Ž ร— 2

๐ธ๐‘ฅ๐‘๐‘œ๐‘›๐‘’๐‘›๐‘ก

  • Rounding errors occur because of the need to round off numbers that cannot be exactly

represented with the available level of precision. Rounding can lead to several types of errors

in calculations.

o Rounding Error : this is the difference between the mathematically exact value of a

number and its rounded floating-point approximation. Even simple arithmetic operations

can accumulate noticeable rounding errors over many iterations or complex calculations.

o Precision Loss : when operating on numbers of vastly different magnitudes, precision

loss can occur, where significant digits of the smaller number are lost. For example, when

a very large number and a very small number are added, the small number may not affect

the sum due to the limited precision of the floating-point format.

o Cancellation : significant digits can be lost when subtracting two close numbers, leading

to a result with less precision than the original numbers.

o Accumulated Errors : in iterative processes or algorithms involving many steps

(numerical integration, solving differential equations, โ€ฆetc.), small rounding errors can

accumulate, potentially leading to significant deviation from the true solution.

Definitions

  • Degree of condition : a measure of the uncertainties in the initial or boundary conditions. It

influences the uncertainty and sensitivity of the solution. The degree of condition is a

function of the mathematical problem itself, independent of the numerical method

implemented.

o Ill-conditioned problem : large uncertainty in the initial or boundary conditions, leading

to very sensitive solution to small changes or errors in the initial data.

o Well-conditioned problem : small uncertainty in the initial or boundary conditions,

leading to very insensitive solution to small changes or errors in the initial data.

โ€ฒ

2 ๐‘ฅ

2 ๐‘ฅ

The solution is highly sensitive to changes or errors in the initial conditions, particularly

for large values of ๐‘ฅ, resulting in ill-conditioned problem. Conversely, for large negative

values of ๐‘ฅ, it appears as a well-conditioned problem.

  • Stability : refers to the degree of certainty in ensuring that the method delivers reliable and

meaningful results. Unstable methods accumulate and propagate errors to levels that are

inaccurate and unreliable.

Error Analysis

Numerical methods are computational techniques used to approximate solutions to

mathematical problems when exact analytical solutions are unattainable. These methods

inherently involve approximation errors.

  • Series are very accurate at a neighborhood of ๐‘ฅ = ๐‘Ž.
  • Taylor and Maclaurin series of ๐‘“

= sin ๐‘ฅ up to 5

th

order,

a = 0

F = - x^3/6 + x

a = 2

F = sin(2) - (sin(2)(x - 2)^2)/2 + (sin(2)(x - 2)^4)/

  • cos(2)(x - 2) - (cos(2)(x - 2)^3)/

a = 2*pi

F = x - 2pi - (x - 2pi)^3/

Maclaurin series of ๐‘“

= sin ๐‘ฅ for different orders,

k = 2

F = x

k = 4

F = - x^3/6 + x

k = 10

F = x^9/362880 - x^7/5040 + x^5/120 - x^3/6 + x

Assignment 1

  1. Find the Maclaurin series of the following functions,

a) ๐‘“(๐‘ฅ) = cos 2 ๐‘ฅ

b) ๐‘“(๐‘ฅ) = ๐‘’

๐‘ฅ

2

  • 1

c) ๐‘“

2

2

  1. Find the Taylor series of ๐‘“

, around ๐‘ฅ = 3 , up to the 4

th

order. Evaluate

the percentage error and absolute error at ๐‘ฅ = 4. Plot ๐‘“(๐‘ฅ) and its Taylor expansion.

  1. Use Maclaurin series to evaluate ๐‘“(๐‘ฅ) = ๐‘’

โˆ’๐‘ฅ

sin ๐‘ฅ, at ๐‘ฅ = 1 with an absolute error less than

  1. Determine the number of significant digits of accuracy of 2.7 2 with respect to ๐‘’.

  2. Show that ๐‘ฅ is an accurate approximation of ๐‘’ to 3 significant digits when,

and suggest a value of ๐‘’ that is accurate to 3 significant digits.