In class, we have discussed how the computer represents numbers in double precision in the memory....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In class, we have discussed how the computer represents numbers in double precision in the memory. The largest number and the smallest positive normalized number that can be presented are given by the predefined variables realmax and realmin respectively. The machine epsilon is given by eps. Another way to represent numbers is to use the single precision. It uses N = 23 digits for the fraction part. The exponent falls in the range L-126 e U = 127. (a) What is the largest and the smallest normalized real numbers that can be exactly represented in the sin- gle precision? Write down the expressions in the binary form. Then transform the binary representation into the decimal form and evaluate it in MATLAB. (b) What is the machine epsilon for the single precision? Write down the expression in both binary and decimal form and evaluate it in MATLAB. (c) How many digits are meaningful in the single precision? (d) Write down two numbers that are equivalent in the single precision. Hint: You can check your answers to (a) and (b) with the MATLAB predefined variables realmin('single'), realmax ('single') and eps ('single'). In class, we have discussed how the computer represents numbers in double precision in the memory. The largest number and the smallest positive normalized number that can be presented are given by the predefined variables realmax and realmin respectively. The machine epsilon is given by eps. Another way to represent numbers is to use the single precision. It uses N = 23 digits for the fraction part. The exponent falls in the range L-126 e U = 127. (a) What is the largest and the smallest normalized real numbers that can be exactly represented in the sin- gle precision? Write down the expressions in the binary form. Then transform the binary representation into the decimal form and evaluate it in MATLAB. (b) What is the machine epsilon for the single precision? Write down the expression in both binary and decimal form and evaluate it in MATLAB. (c) How many digits are meaningful in the single precision? (d) Write down two numbers that are equivalent in the single precision. Hint: You can check your answers to (a) and (b) with the MATLAB predefined variables realmin('single'), realmax ('single') and eps ('single').
Expert Answer:
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date:
Students also viewed these programming questions
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Why do most cities in the United States now have more radios but fewer radio repair shops than they did in 1960?
-
Presented below is the partial bond discount amortization schedule for Gomez SA. Gomez uses the effective-interest method of amortization. (a) Prepare the journal entry to record the payment of...
-
Calculate the finite population correction factor for each of the following situations: a. n = 50, N = 2,000 b. n = 20, TV = 100 c. n = 300, TV = 1,500
-
You are engaged in auditing the financial statements of Henry Brown, a large independent contractor. All employees are paid in cash because Brown believes this arrangement reduces clerical expenses...
-
Heyer Appliances assembles dishwashers at its plant in Tuscaloosa, Alabama. In February 2014, 60 circulation motors that cost $ 110 each (from a new supplier who subsequently went bankrupt) were...
-
From the list below, which domain do you suggest is the weakest for the "Canadian Women & Sport" organization? As well as how can we improve it. https://womenandsport.ca/ 1) Marketing and Consumer...
-
Norcross Carpet Cleaning (NCC) is a commercial service specializing in maintaining floor coverings in high-traffic areas such as malls and office buildings. The business is highly seasonal, with high...
-
Suppose the population mean height of NBA basketball players is79 inches (6 feet 7 inches) and the population standard deviationis 3.5 inches. You take a random sample of 20 NBA players andcalculate...
-
A steam generator evaporates \(17,000 \mathrm{~kg} / \mathrm{h}\) of steam at 14 bar and quality of 0.95 from feed water at \(102^{\circ} \mathrm{C}\). When coal is fired at the rate of \(2,050...
-
Determine the enthalpy and internal energy of \(1 \mathrm{~kg}\) steam at a pressure of \(10 \mathrm{bar}\), when (i) the dryness fraction of steam is 0.85 , (ii) the steam is superheated to...
-
A boiler generates \(7.5 \mathrm{~kg}\) of steam per \(\mathrm{kg}\) of coal burnt at a pressure of 11 bar. The feed water temperature is \(70^{\circ} \mathrm{C}\); boiler efficiency is \(75 \%\);...
-
Determine dryness fraction of steam supplied to a separating and throttling calorimeter. Water separated in separating calorimeter \(=0.2 \mathrm{~kg}\) Steam discharged from throttling calorimeter...
-
Determine the total heat content per unit mass at the following state using the steam tables. Assume ambient pressure to be \(100 \mathrm{kPa}\) and \(C_{P}\) \(=2.0934 \mathrm{~kJ} / \mathrm{kg}\)....
-
What are the principles of parliamentary procedure that you have observed and what are the not known that should be followed?
-
Briefly discuss the implications of the financial statement presentation project for the reporting of stockholders equity.
-
In this exercise, treat the real interest rate r as identical to the the rental rate on capital. A. We will now consider the responsivenessor elasticityof savings and borrowing behavior with respect...
-
Pollution and Monopolies: In Chapter 21, we discussed the externality from pollution-producing industries within a competitive market. A: Suppose now that the polluting firm is a monopolist. (a)...
-
Everyday Application: Cities and Land Values: Some of the models that we introduced in this chapter are employed in modeling the pattern of land and housing values in an urban area. A: One way to...
-
Tesco plc is one of the worlds largest food retailers. Fiscal year 2014 (the year ended February 28, 2015) was a rocky year for the retailer. The companys sales and margins had come under pressure as...
-
Exhibit P2 displays a selected set of financial ratios for the years 20152017 of three fashion retailers: USbased Gap, UK-based Next, and Japan-based Uniqlo (Fast Retailing). Using this set of...
-
In 2009, following the worldwide credit crisis, several US-based car manufacturers, such as Chrysler and General Motors, approached bankruptcy and needed to be bailed out by the US government and...
Study smarter with the SolutionInn App