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...
-
A man is tested to determine whether he can tell butter from margarine. He is blindfolded and given small bites of English muffin to identify. At each trial, an English muffin with either butter or...
-
This chapter describes how the nature of the workforce is changing: the population is aging, the labor pool is shrinking, the workforce is becoming more diverse, the nature of work is changing, the...
-
Consider an economy populated by two types of risk-neutral borrowers. And suppose that all potential borrowers live throughout four periods: 0, 1, 2, and 3. At the beginning of each period, every...
-
Lackner Bros. has 12 percent semiannual bonds outstanding which mature in 10 years. Each bond is now eligible to be called at a call price of $1,060. If the bonds are called, the company must replace...
-
1070 98f+ D 480 how much police tape is needed to tape off the entire area? The search party is able to cover 200ft per hr. If the sun goes down in 8 hrs, do the police have en enough time to...
-
Hill has two options to enter the small business market through a partnership or through direct sales. The costs and pricing differ for each approach. Hill Partnership: Sales price is 35% lower Hill...
-
Determine the running time of the following algorithms. Write summations to represent loops and simplify. Justify your solution. When using upper and lower bounds, be sure to justify both the upper...
-
The liquid phase reversible reaction R T is carried out in an ideal mixed flow reactor. The concentrations of R and T that enter the reactor are, respectively, 3.48 and 0 (zero) mol/L. The rate...
-
How much will you have in an account after 25 years if you put $1500 per month in the account earns 6% compounded monthly? Answer = $ b) How much will you have after 25 years if you put $1500 per...
-
executed: The following C program creates child processes when #include #include int main() { printf ("Start "): for (int k-1; k
-
we considered two different mechanisms for flow of an incompressible Newtonian fluid (INF) between two horizontal parallel plates separated by distance a with the origin of the coordinate field at...
-
The value of tanx to giver find Sinx and cost the specified interval. of X lieg 90 Lan x = 1/1/32 0, I find, Sint and cost 9 2. # a. find the Slope of the cuone 7=2-15x at the given point p(2,-22) by...
-
05 Lamp Light Limited (LLL) manufactures lampshades. It applies variable overhead on the basis of direct labor hours. Information from LLL's standard cost card follows: Variable manufacturing...
-
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...
-
Identify whether each of the following costs should be classified as product costs 399 (a) Manufacturing overhead. (d) Advertising expenses. (b) (c) Selling expenses. Administrative expenses. (e)...
-
Using the data in Q15, what are (a) the total cost of work in process and (b) the cost of goods manufactured? Data from in Q15 Jam Manufacturing Inc. has beginning work in process \($27,200\), direct...
-
Presented below are Hyde Company's monthly manufacturing cost data related to its personal computer products. Entei each cosl item in the following table placing an "X" undei the appropriate headings...
Study smarter with the SolutionInn App