We saw in lecture methods to store integers (both negative and non-negative) and real numbers as...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
We saw in lecture methods to store integers (both negative and non-negative) and real numbers as sequences of Os and 1s. Integers can be stored exactly (using binary numbers and/or 2's complement), but real numbers must be approximated by rational numbers. In decimal (base 10), a rational number can be expanded as, for example, 11 1.375. 8 That is, 11 = 1 x 10° +3 x 10-1 +7 x 10-2 + 5 x 10-3. 8 In a similar fashion, we can expand a rational number in binary, 11 ...# x 2° + # x 2-1 + # x 2-2 + # x 2-3 + ... 8 = 1 x 2° +0 x 2-1 +1x 2-2+1 x 2-3. Thus, we can write 11/8 as 1.011 in binary; thereby converting it to a sequence of Os and 1s (and a decimal-binary?-point). (a) Is 0.1 the binary expansion of 1/2? Explain why or why not. (b) Determine the binary expansion of 45/16. Remember that a rational number is a number that can be written as a ratio of integers, such as 1/2, 3/4, and 5/1. We saw in lecture methods to store integers (both negative and non-negative) and real numbers as sequences of Os and 1s. Integers can be stored exactly (using binary numbers and/or 2's complement), but real numbers must be approximated by rational numbers. In decimal (base 10), a rational number can be expanded as, for example, 11 1.375. 8 That is, 11 = 1 x 10° +3 x 10-1 +7 x 10-2 + 5 x 10-3. 8 In a similar fashion, we can expand a rational number in binary, 11 ...# x 2° + # x 2-1 + # x 2-2 + # x 2-3 + ... 8 = 1 x 2° +0 x 2-1 +1x 2-2+1 x 2-3. Thus, we can write 11/8 as 1.011 in binary; thereby converting it to a sequence of Os and 1s (and a decimal-binary?-point). (a) Is 0.1 the binary expansion of 1/2? Explain why or why not. (b) Determine the binary expansion of 45/16. Remember that a rational number is a number that can be written as a ratio of integers, such as 1/2, 3/4, and 5/1.
Expert Answer:
Related Book For
Numerical Methods for Engineers
ISBN: 978-9352602131
7th edition
Authors: Steven C. Chapra, Raymond P. Canale
Posted Date:
Students also viewed these accounting questions
-
In a similar fashion to the case study described in Sec. 16.4, develop the potential energy function for the system depicted in Fig. P16.32. Develop contour and surface plots in MATLAB. Minimize the...
-
Develop an M-file function for bisection in a similar fashion to Figure. Test the function by duplicating the computations from Example 5.3 and 5.4.
-
Let Here, 2 contains all columns of 0s and 1s of height two. A string of symbols in 2 gives two rows of 0s and 1s. Consider each row to be a binary number and let C = {w * 2 | the bottom row of w...
-
Seeking for information of a specific organization then answer following questions: (1) Give a brief introduction of the chosen organization. (2) Explain the type of the chosen organization. What are...
-
Suppose two random variables and are both zero mean and unit variance. Furthermore, assume they have a correlation coefficient of . Two new random variables are formed according to: W = aX + bY, Z =...
-
On Mollier diagram, free expansion, or throttling process from high pressure to the atmosphere is represented by: (a) Horizontal straight line (b) Vertical straight line (c) Curved line (d) None of...
-
A common-size income statement for Liberty would report (amounts rounded) a. Net income of \(16 \%\) b. Cost of sales at \(36 \%\) c. Sales of \(100 \%\) d. All the above
-
Abe Technologies provides maintenance service for computers and office equipment for companies throughout the northeast the sales manager is elated because she closed a $300,000, 3-year maintenance...
-
1 Find the derivative of the following 1. f(x) = 12x- 6x+2 28 +4x3/4
-
The High-Flying Growth Company (HFGC) has been growing very rapidly in recent years, making its shareholders rich in the process. The average annual rate of return on the stock in the last few years...
-
# 1 Which of the 3 principal types of flowsheets would one use to: a. give a group of visiting chemical engineering students an overview of the process? b. make a preliminary capital cost estimate?...
-
What happens in inception?
-
What are the likely activities and artifacts in inception?
-
List the drawbacks of structured approach.
-
Define Requirements.
-
Which techniques are applied in software development process?
-
How do microorganisms engage in inter-kingdom signaling to establish symbiotic relationships with plants, and what are the implications for agriculture and environmental remediation strategies?
-
A survey of 70 college freshmen asked whether students planned to take biology, chemistry, or physics during their first year. Use the diagram to answer each question. How many of the surveyed...
-
Develop a well-structured function to determine the elapsed days in a year. The first line of the function should be set up as function nd = days(mo, da, year) where mo = the month (1-12), da = the...
-
As described in Prob. 1.22, in addition to the downward force of gravity (weight) and drag, an object falling through a fluid is also subject to a buoyancy force that is proportional to the displaced...
-
You are working as a crime-scene investigator and must predict the temperature of a homicide victim over a 5-hr period. You know that the room where the victim was found was at 10C when the body was...
-
Consider a single-degree-of-freedom system with Coulomb damping (which offers a constant friction force, \(F_{c}\) ). Derive an expression for the force transmissibility when the mass is subjected to...
-
Consider a single-degree-of-freedom system with Coulomb damping (which offers a constant friction force, \(F_{c}\) ). Derive expressions for the absolute and relative displacement transmissibilities...
-
When a washing machine, of mass \(200 \mathrm{~kg}\) and an unbalance \(0.02 \mathrm{~kg}\) - \(\mathrm{m}\), is mounted on an isolator, the isolator deflects by \(5 \mathrm{~mm}\) under the static...
Study smarter with the SolutionInn App