Lecture2
Lecture2
Errors
Round-Off Errors Truncation Errors
Significant Digits Taylor series
Accuracy vs Precision Taylor series approximation of a polynomial
Error Definitions Using Taylor series to estimate truncation errors
Computer representation of a number
Approximations and Round-Off Errors
❑ How much error is present in our calculation and how much tolerable
it is?
SIGNIFICANT FIGURES
Significant digits of a number are those that can be used with confidence.
Accuracy: How closely a computed or measured value agrees with true value
Precision: How closely individual calculated value agrees with each other
True error takes no account of the order of magnitude of the value under examination.
True Error
True Percent Relative Error = True Value × 𝟏𝟎𝟎
Bridge Rivet
Actual Value = 10 ,
000 cm.
A V
.
.
=
10 .
cm
=
. = .
Et = 1 cm.
Et =
f cm.
Relative Error :
-
Rivet
=.
↑
Bridge.
x100
= 10 %
= 0 :
01 %
❑ In real world applications, we usually do not know the true value
approximate error
𝜖𝑎 = × 100
approximation
❑Typically, absolute value is used. Computations are repeated until stopping criterion
is satisfied.
|𝜖𝑎 | < 𝜖𝑠
We
approximate f(xi 1) by f(xi)
+ .
itself
f(xi 1) +
=
f(xi) + #
(slope) h flexe
---- Y of
in
:
f'(di) h
f(xi + 1) = f(xi) + f(xi)h with di + 1
= f(xi) + f(xi)(xi + 1
-
xi)
Order Approximation:
Second
f'(i)n
f(xi 1)
+ = f(xi) +
+
Similarly ,
f(i)h
f(xi)
.
f(xi + 1) = + +. ..
.
where h =i + -xi
Rn
=A3)
ht ,
for some between
x;2 ki + 1
&
f'(0) =
-
0 .
25 , +"(0) = -1 ,
f"(0) = 3)( -
0 -
15)
fir(0) = 4! ) -
0 -
7)
Orderapproximation
-eroth
2-1 2 1
Er 0 =
-
=
.
.
lett =
1
2nd
!
order
1st order approx :
approx :
2 -
0 .
45) = 0 25.
Et = 0 .
2 -
0 .
95
=
0 75 ↑
th Approx
Order-
-
.
=
. .
= 1 2 .
-
0 .
25h - o .
go 0 .
14
= 1 2
. -
0 .
25 -
0 5-0 15-0
.
. .
1 = 0 .
Truncation
Error= -
15 1:t has
degree 4