


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The concepts of floating point numbers, their minimum and maximum values, and the cancellation of significant digits during arithmetic operations. Dr. Hanif durad provides examples using matlab to illustrate these concepts and highlights the imprecision that can result from significant digit cancellation.
Typology: Exercises
1 / 4
This page cannot be seen from the preview
Don't miss anything!



2.2204e-
realminans =
2.2251e-
realmaxans =
1.7977e+
Dr. Hanif Durad
a = 1; b=1; while a+b ~= a; b=b/2; end>> aa =
bb =
1.1102e-
a+bans =
Dr. Hanif Durad
x = 1.0e-15x =
1.0000e-
((1+x)-1)/xans =
This result is rather imprecise, the relative error being larger than11%!
Dr. Hanif Durad