This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Homework 1 Math 471, Fall 2007 Assigned: Friday, September 7, 2007 Due: Friday, September 14, 2007 Include a cover page Clearly label all plots using title , xlabel , ylabel , legend Use the subplot command to compare multiple plots Include printouts of all Matlab code and outputs, labeled with your name, date, etc. (1) (Finite precision numbers) The floating point representation of a real number takes the form x = (0 .a- 1 a- 2 ...a- n ) e , where a- 1 6 = 0,- M e M . Suppose that = 2, n = 4, and M = 5. (a) Find the smallest and largest positive numbers that can be represented in this floating point system. Give your answers in decimal form. (b) Find the floating point number in this system that is closest to 2. (2) (Programming) Implement the following algorithm for converting a decimal number to its binary equivalent x = ( a n a n- 1 ...a ) 2 ....
View Full Document