I'm studying numerical analysis and i am stuck with one of my exercises. In the book "Numerical Analysis: Mathematics of scientific Computing" they introduce a hypothetical computer called MARC-32. In the book the computer is a 32-bits computer representing a nonzero real number with the form: x = ±q * 2^m
with the allocation:
- sign of the real number x: 1 bit
- biased exponent (integer e): 8 bits
- mantissa part (real number f): 23 bits
My problem is that i really do not understand the computer and hence can not solve the following problems:
Determine whether the following numbers are machine numbers in the Marc-32:
- 10^40
- 2^-1+2^-29
- 1/3
- 1/5
I have read the chapter a couple of times and still i don't get it. I really want to know what they mean by the hypothetical computer and how to solve it.
Best Answer
If you write $x$ in binary, it would looks something like this (as an example): $$x=1010011.011010010001_b$$ Then you convert it to the binary version of scientific notation: $$x = 1.010011011010010001_b \times 2^{110_b}$$
For this example,