Docsity

introduction Numerical Methods, Study notes of Mathematics

Toggle sidebar
bg1
NUMERICAL ANALYSIS-I FOR GARMENT ENGINEERING
1
CHAPTER-ONE
1. BASIC CONCEPTS IN ERROR ESTIMATION
1.1 Introduction
What is numerical analysis?
Numerical analysis is an area of mathematics and computer science that deals with crating data,
organizing, analyzing and implementing an algorithm to solve mathematical problems.
Why we learn/study numerical analysis?
Numerical method is important to approximate solution of mathematical problems when
the analytical solution or ordinary method becomes difficult or impossible.
Numerical methods are a class of methods for solving a wide variety of mathematical
problems.
Numerical Methods/Computational techniques use computers to solve problems by step -
wise, repeated and iterative solution methods, which would otherwise be tedious or
unsolvable by hand-calculations.
For many engineering problems, we cannot obtain analytical solutions.
Numerical Methods are methods for solving problems on computers by numerical
calculations and/or graphical representations or figures.
Numerical Methods tend to emphasize the implementation of algorithms.
Numerical Methods yield approximate results that are close to the exact analytical
solution.
1.1.2 Motivation towards need of numerical methods?
We cannot exactly compute the errors associated with Numerical Methods.
There are two kinds of numbers—exact and approximate numbers.
An approximate number is a number that differs, but slightly, from an exact number and
is used in place of the latter in calculations.
Example: - , , , … , , , … , are all exact,,√, , … , ., written in this manner are
also exact. 1.41 is an approximate value of √, and 1.414 is also an approximate value of √.
Similarly 3.14, 3.141, 3.14159, …, etc., are all approximate values of .such numbers which
represents the given numbers to certain degree of accuracy are called Approximate numbers.
2 Advantages of Numerical Methods
Extremely powerful problem-solving tools
Commercial software’s and packages available
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download introduction Numerical Methods and more Study notes Mathematics in PDF only on Docsity!

CHAPTER-ONE

1. BASIC CONCEPTS IN ERROR ESTIMATION

1.1 Introduction

What is numerical analysis?

Numerical analysis is an area of mathematics and computer science that deals with crating data,

organizing, analyzing and implementing an algorithm to solve mathematical problems.

Why we learn/study numerical analysis?

 Numerical method is important to approximate solution of mathematical problems when

the analytical solution or ordinary method becomes difficult or impossible.

 Numerical methods are a class of methods for solving a wide variety of mathematical

problems.

 Numerical Methods/Computational techniques use computers to solve problems by step-

wise, repeated and iterative solution methods, which would otherwise be tedious or

unsolvable by hand-calculations.

 For many engineering problems, we cannot obtain analytical solutions.

 Numerical Methods are methods for solving problems on computers by numerical

calculations and/or graphical representations or figures.

 Numerical Methods tend to emphasize the implementation of algorithms.

 Numerical Methods yield approximate results that are close to the exact analytical

solution.

1.1.2 Motivation towards need of numerical methods?

 We cannot exactly compute the errors associated with Numerical Methods.

There are two kinds of numbers— exact and approximate numbers.

An approximate number is a number that differs, but slightly, from an exact number and

is used in place of the latter in calculations.

Example: - , , , … , , , … , are all exact , , √

, , … , ., written in this manner are

also exact. 1.41 is an approximate value of √

, and 1.414 is also an approximate value of √

Similarly 3.14, 3.141, 3.14159, …, etc., are all approximate values of .such numbers which

represents the given numbers to certain degree of accuracy are called Approximate numbers.

2 Advantages of Numerical Methods

 Extremely powerful problem-solving tools

 Commercial software’s and packages available

 Can provide additional insight into various engineering problems

1.2 Significant and Round-off errors

1.2.1 SIGNIFICANT DIGITS

 All digits of a decimal representation beginning with the first non-zero digit are call

significant digits

 The digits that are used to express a number are called significant digits****.

Two notational conventions which make clear how many digits of a given number are significant

are given below.

  1. The significant digits in a number in positional notation consist of:

( a ) All non-zero digits and

( b ) Zero digits which

( i ) Lie between significant digits

( ii ) Lie to the right of decimal point, and at the same time to the right of a non-zero digit.

( iii ) Are specifically indicated to be significant

  1. The significant figure in a number written in scientific notation ( × ) consists of all

the digits explicitly in M.

Example:-

Number Significant Figures No. of Significant figures

21.36 2, 1, 3, 6 4

6030 6, 0, 3 3

6.00 6, 0, 0 3

0.00082 8, 2 2

z0.000620 6, 2, 0 3

. ×

5, 2 2

. × 3, 5, 0, 6 4

5.3800 x 10

4

5,3,8,0,0 5

0.00001753 1,7,5,3 4

Accuracy and Precision

Accuracy :

Refers to how closely a number agrees with the true value of the number it is

representing.

How close a computed or measured value to the true value.

Precision (or reproducibility ):

How close 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.

(a) Inaccurate and imprecise, (b) accurate and imprecise ,(c) inaccurate and

precise, (d) Accurate and precise

Example :

Number

Rounded-off [the value approximate 4

th

to 3

th

call R-Error]

Three digits Four digits

00.522341 00.522 00.

93.2155 93.2 93.

00.66666 00.667 00.

84767 84800 84770

5.8255 5.82 5.

1.3 Definition and Source of errors [Does computers make mistakes?]

 Numerical errors arise from the use of approximations to represent exact mathematical

operations and quantities.

ERRORS

 Errors frequently occur in numerical calculation.

 One of the most important aspects of numerical analysis is the error analysis. Errors may

occur at any stage of the process of solving a problem.

By the error we mean the difference between the true value and the approximate value.

∴ Error = True value ( ) – Approximate value ( ).

Numerical Error

  • The total numeric error is the summation of the truncation and round-off errors.

Types of Errors

In any Numerical Computational, we come across the following types of errors

1) Inherent errors : Most of numerical computations are inexact either due to the given data

or due to the limitations of the computing aids such as Mathematical tables, Desk

Calculators or the digital computers. Due to these limitations numbers have to be

rounded causing errors called inherent errors. Inherent errors are the errors that pre

exist in the problem statement itself before its solution is obtained. These errors cannot be

completely eliminated but can be minimized if we select better data or by employing high

precision computer computations.

Example: The area of a circle is computed by =. Since by its nature is an approximate

value we round it to different digits as = 3. 1 , = 3. 14 , = 3. 142 and so on then the error

existing in such problems is called inherent error.

2) Rounding errors: arise from the process of rounding off the numbers during the

computation.

3) Truncation errors: are caused by using approximate results or on replacing an infinite

process by a finite one. If we are using a decimal computer having a fixed word length of

4 digits, rounding off of 13.658 gives 13.66 whereas truncation gives 13.65.

For, example : If = 1 + +

!

!

  • ⋯ ∞ = ( ) is replaced by;

!

!

= ( ), then the truncation error is −.

1.4 Computational Methods for Error

Absolute, Relative and Percentage errors:

1. Absolute/True error (E A

) : Is the numerical difference between the true value of a

quantity and its approximate value. i.e. If is the exact or true value of a quantity and

is its approximate value, then | – | is called the absolute error. Therefore

absolute error

2. Relative error(E

R

): The relative error is the ratio of the absolute error to the exact

value that is

Provided ≠ 0 or is not too close to zero.

3. The percentage relative error ( ) is

= × 100 % =

× 100 %

Important Rules

4. Rule 1 If is the approximate value of correctly rounded to m decimal places then

× 10

5. Rule 2 If is the approximate value of , after truncating to k digits, then

6. Rule 3 If is the approximate value of , after rounding-off to k digits, then

× 10

7. Rule 4 If is the approximate value of , correct to m significant digits, then

Note that : If a number is correct to n significant +digits, then the maximum relatives error ≤

If a number is correct to d decimal places, then the absolute error ≤ 10.

Example 1: If = 0. 51 correct to two decimal places, then find the absolute error.

Solution: = × 10 , but in this case = 2

= = = 6. 71 × 10

E = E × 100 = 6. 27 × 10.

ii) Number rounded off to four significant digits=37.

E =

X − X

.

.

= 6. 27 × 10

E = E × 100 = 6. 27 × 10

Example 5: Find the absolute error if the number 0.005455828 is

i) Truncated to three decimal digits.

ii) Rounded off to three decimal digits.

Solution: We have = 0. 005455828 = 0. 545828 × 10

i) After truncating to three decimal places, its approximate value = 0. 545 × 10

= 0. 000828 × 10 = 0. 828 × 10

ii) After rounding off to three decimal places, its approximate value = 0. 546 × 10

∴ = | − | = 0. 000172 × 10 = 0. 172 × 10

Illustrative Examples

  1. Determine the absolute and relative errors when approximating and

∗

when

a) = 0. 3000 10 and

∗

= 0. 3100 10 ; c) = 0. 3000 10 and

∗

b) = 0. 3000 10 and

∗

  1. Determine the five digit a) Chopping b) Rounding of the irrational number.
  2. Let = 0. 5461 and = 0. 54601. Use four-digit arithmetic to approximate − and

determine the absolute and errors using a) rounding and b) chopping

Exercise

1. Compute the absolute and relative error in approximation of by

∗

a) = ,

∗

c) = √ 2 ,

∗

b) c) = ,

∗

= 2200 d) = 8 !,

∗

2. Use three-digit rounding arithmetic to perform the ff calculations. Compute the absolute

the error and relative error with the exact value determined to at least five digits.

a) 133 + 0. 921 b)

c) ( 121119 ) − 0. 327 d)

⁄

3. Perform the following computations

i) Exactly iv) Compute relative errors in parts ii) and iii)

ii) Using three-digit chopping arithmetic

iii) Using three-digit rounding arithmetic

a)

b)

c)

1.4 GENERAL ERROR FORMULA

Function Approximation

Let be a function of several independent quantities , , , … , which are subject to errors

of magnitude ∆ , ∆ , ∆ , … , ∆ respectively. If ∆ ( ) denotes the error in then

Using Taylor’s theorem for a function of several variables and expanding the right hand side we get

The errors ∆ , ∆ , ∆ , … , ∆ are very small quantities.

Note that: Errors occurs due to Summation, Product, Modeling, Series approximations,

rounding off, etc

Exercise 1.

1. If the true value of a number is 2. 546282 and 2. 5463 is its approximate

value; find the absolute error, relative error and the percentage error in the

number.

2. Round- off the following numbers to two decimal places

) 62. 275 ) 2. 375 ) 2. 385 d) 81. 255 e)

3. Find the Relative error of the number 4. 62 if both of its digits are correct. 4. Evaluate the sum = √

19 to four significant digits and find its

absolute and relative errors.

5. Find the largest interval in which must lie to approximate = √

with

relative error at most 10

6. = , = 72 ± 0. 9 , ℎ = 4 ± 0. 1 , = 70 ± 1. 5 then find error in 7. Let = + ln (√ + 10 ) and the errors in , be 0. 001. then

compute the maximum relative errors in when = = = 1

8. Let = + if the percentage error in ≤ 2 %, then find the errors in

and ℎ. { = 4. 5 , ℎ = 5. 5 }

9. Use derivative to calculate the approximate percentage error in volume of a sphere of

radius 4 corresponding to an error of 1 % in its radius.

10. Find the truncation errors in the Maclaurin expansion of a) = b) = ℎ