This preview shows pages 1–2. Sign up to view the full content.
DALHOUSIE UNIVERSITY
(Department of Engineering Mathematics)
ENGM3052 Numerical Methods and Linear Algebra
ASSIGNMENT #2
DUE: Sept 29, 2009
1.
(a)
An “uint16” consist of unsigned positive numbers that are stored with 16 bits registers.
What is the range of numbers that can be stored with this data type?
(b)
X represents a 1000 by 1000 matrix with the elements stored as real 64 bit floating
(matlab default).
(i)
How many bytes of memory does it take to store matrix X?
(ii)
The command X = int16(X) converts all the elements of matrix X to signed 16 bits.
What would the size of matrix X be after the int16 function is executed?
(iii)
For what element values would matrix X in (i) be the same as matrix X in (ii)?
(c)
Convert the following binary “float” data type to a real number using the IEEE
standard.
1
10000000011
011110000000 0000000000 0000000000 0000000000 0000000000
2.
Consider the evaluation of
)
sin(
1
)
(
δ
+

=
+
x
x
f
and
)
sin(
1
)
(
cos
)
(
2
+
+
+
=
+
x
x
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 10/19/2009 for the course ENG 3361 taught by Professor Yao during the Fall '09 term at Dalhousie.
 Fall '09
 yao

Click to edit the document details