Question: Matlab implements IEEE double precision floating point arithmetic. Each floating point number x is of the form x = + - 0 . d 1

Matlab implements IEEE double precision floating point arithmetic. Each floating point number x is of the form
x=+-0.d1d2cdotsd53*2e,-1023e1023.
If -1022e1023,x is assumed to be normalized, meaning that d1=1; since d1 is known to be 1, it need not be stored. To represent very small numbers, the following convention is adopted: If e=-1023, then d2d3cdotsd53 is interpreted as 0.0d2d3cdotsd53*2-1022(no typo - an exponent of -1023 is interpreted as an exponent of -1022 with d1=0).(Since d1 is not stored, the bits make sense: 1 bit for the sign, 52 bits for d2,d3,dots,d53, and 11 bits for the exponent, for a total of 64 bits, or 8 bytes.)
(a) What are the largest and smallest positive floating points numbers in this system?
(b) What is the smallest floating point number strictly larger than 1 and the largest floating point number strictly less than 1?
(c) Write Matlab (or Python or Julia or ...) code to verify the above conclusions. For example, if x is the largest positive floating point number, your code should verify that x is exactly representable and that any number larger than x either overflows to Inf or is rounded down to x. Similarly for the other three floating numbers described above.
Can you give me a detailed solution so that i can understand thank you
 Matlab implements IEEE double precision floating point arithmetic. Each floating point

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!