Professional Documents
Culture Documents
Homework #1: Numerical Analysis
Homework #1: Numerical Analysis
Numerical Analysis
Homework #1
Preliminaries
DATE : 2st November 2021 D UE : 21th November 2021
1 I NDICATIONS
1. You could fill this sheet with just the answer to each problem and return it to the professor. However, you
have to present the process on a separate exam sheet.
2. Answers with no process are not valid.
3. Make all calculations with 5 decimal places of precision.
2 P RELIMINARIES
1. (1.0 point) Let p̂ be an approximation of p, which is given by the sum of the first four terms in the series
p= ∞ i
P
i=0 cr .
2 2 2
p̂ = 2 + + + (2.1)
3 9 27
a) Calculate the absolute (A) and relative (R) error between p and p̂.
A= R=
b) Determine the number of significant digits d in the approximation.
d=
c) Suppose that p̂ is stored in a computer of 8 bits of precision: 1 bit for sign, 3 bits for the exponent, and
4 bits for the mantissa. Determine the point float number stored.
bias =
Sign Exponent Mantissa
5. (1.0 point) Suppose that a computer has 32 bits of precision: 1 bit for sign, 8 bits for the exponent, and 23
bits for the mantissa.
9 9 1
Determine the number p̂ that will be stored for the operation p = + + . Take into account
5 10 6
the propagation of the error.
S Exponent Mantissa
b) 9818.1510
S Exponent Mantissa
c) −0.8010
S Exponent Mantissa