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...
-
Which of the following can be true? If an answer is false, state why it is false a. The CDF Fx(x) can be negative. b. The density fx(x) can be negative. c. The mass px(x) can be negative.
-
The three stone blocks have weights of W A = 600 lb, W B = 150 lb, and W C = 500 lb. Determine the smallest horizontal force P that must be applied to block C in order to move this block. The...
-
Determine whether each of the following is true or false. In each case, assume \(P\) is located at \(t=0\) and \(F\) is located at \(t=n\), and the \(A\) s are spread uniformly over the planning...
-
The CyClon project team has started gathering information necessary to develop a project network-predecessor activities and activity time in days. The results of their meeting are found in the...
-
While the Donlin Mine is on Native Corporation land, do you think there would be a difference if the state or federal government owned the land? That is, would there be a difference in whether those...
-
Kofi Allon, who is 32 years old and single, is employed as a technical consultant for a large electronics distributor. He lives at 678 Birch Street, LaMesa, CA 91941. Kofi's Social Security number is...
-
10) Mariana hurt her back and was unable to work. She filed a claim under her disability income insurance policy. Under terms of the policy, a period of time must pass between when the injury...
-
BB Corp. purchased a truck that currently has a book value of $900. If the firm sells the truck for $2,500 today, then what is the amount of cash that it will net after taxes if the firm is subject...
-
A 20 meter chain hangs off the side of a 100 meter tall building. If the mass density of the chain is 3 kg/m, then how much work is required to lift half the chain to the top of the building? Express...
-
critically discuss the significance of employee benefits within an organization of your choice ?
-
Please answer fast and in a detailed manner. For this exercise, assume you are the HR Benefits Administrator for a medium-sized, high- tech company. You are developing an employee benefits brochure....
-
To more effectively communicate a benefits package to employees, more companies are having new employees meet one - on - one with benefits counselors. ? verify this statement
-
True or false? Explain your answer. (a) "If inflation increases across developed economies, Central Banks of these countries will respond by increasing their target interest rates. This in turn will...
-
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...
-
____________ refers to the chronic exhaustion from persistent workload, decreased motivation, and apathy toward work.
-
Can the risks and health consequences (for individuals and organizations) associated with difficult customers and coworkers be alleviated with employee education and training? What experiences have...
-
Employee ____________ is the loss or turnover of employees to other jobs and industries perceived as having healthier workplace cultures.
Study smarter with the SolutionInn App