You are on page 1of 2

Universidad Industrial de Santander

Grupo de Investigación HDSP


Escuela de Ingeniería de Sistemas e Informática
Ph.D. Henry Arguello Fuentes Undergraduate Studies

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

2. (0.6 points) Given the Taylor polynomial expansions


h2 h3 h4
eh = 1 + h + + + + O(h5 ) (2.2)
2! 3! 4!
and
h3 h5
sin h = h − + + O(h7 ) (2.3)
3! 5!
Determine the order of approximation of
a) eh + sin h
Order:
b) eh × sin h
Order:

3. (0.7 points) Convert the following binary numbers to decimal form


a) 100110011102
Decimal form:
b) 100110101.1101011012
Decimal form:

Ph.D. Henry Arguello Fuentes Page 1 of 2


dssdf
sadssd

4. (0.7 points) Convert the following base 10 numbers to binary form


a) 1457310
Binary form:
b) 2135.12510
Binary form:

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

6. (1.0 point) Convert the following decimal numbers to floating-point of 32 bits:


a) 1612.0710
S Exponent Mantissa

b) 9818.1510
S Exponent Mantissa

c) −0.8010
S Exponent Mantissa

Ph.D. Henry Arguello Fuentes Page 2 of 2

You might also like