i) Consider the floating-point number system that have binary representa- tions of the form (0.b1b2)2 x...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
i) Consider the floating-point number system that have binary representa- tions of the form (0.b1b2)2 x 2*, where k, b₁,b₂ = {0,1}. a) Write down all the numbers which can be represented in this floating point system. b) How many different numbers can be represented using this represen- tation? c) Design a new binary representation using three bits , m, n = {0,1} which can represent 8 different numbers. This set of 8 numbers must include all the numbers from part a) except 0. Write down all the numbers which can be represented with your new binary representa- tion. d) Let M be a 10 x 10 matrix whose entries are floating point numbers using the representation (0.b1b₂) x 2 introduced above. How many bits need to be stored to store the numbers in this matrix? ii) Letz= 10-¹0. The goal is to compute 1-cos(2) A straightforward Matlab implementation shows that >> x = le-10; >> 1/(1-cos(x)) ans = Inf Show how this computation can be modified such that catastrophic can- cellation can be avoided. iii) Let f [0, 1]→→ R be given by f(x) = e. a) Compute the quadratic spline with the node points 0.1/2.1 with first derivative at the point 1/2 given by f'(1/2). 1/2 -1/2 b) Find an approximation for feda by evaluating f/2s(2)de. iv) Derive the Gaussian quadrature rule of the form [ f(x)x¹³dz ~ af(-a) + bf (0) + cf (a) (1) that is exact for all polynomials of as high a degree as possible; that is, determine a. a, b,and c. v) The formula for the secant method can also be written as ti+kN In Xn+1 = Establish this, and explain why it is inferior to the expression of *n+1 = - (1₂ (72) f)) (4.) in a computer program. xn-if(n) - Enf(n-1) f(an) - f(n-1) vi) Let T> 0 be a real number, N> 1 be an odd integer and 20, 21, 2N-1 be a set of real numbers. You are given the values = T (i+kN); and y+kN 2₁, for i= 0,1,2,... N-1 and all k € Z. N a) Define a trigonometric polynomial p: R R such that p(te) ye for all l € Z. = b) Outline a Matlab program which computes the coefficients of the trigonometric polynomial p. i) Consider the floating-point number system that have binary representa- tions of the form (0.b1b2)2 x 2*, where k, b₁,b₂ = {0,1}. a) Write down all the numbers which can be represented in this floating point system. b) How many different numbers can be represented using this represen- tation? c) Design a new binary representation using three bits , m, n = {0,1} which can represent 8 different numbers. This set of 8 numbers must include all the numbers from part a) except 0. Write down all the numbers which can be represented with your new binary representa- tion. d) Let M be a 10 x 10 matrix whose entries are floating point numbers using the representation (0.b1b₂) x 2 introduced above. How many bits need to be stored to store the numbers in this matrix? ii) Letz= 10-¹0. The goal is to compute 1-cos(2) A straightforward Matlab implementation shows that >> x = le-10; >> 1/(1-cos(x)) ans = Inf Show how this computation can be modified such that catastrophic can- cellation can be avoided. iii) Let f [0, 1]→→ R be given by f(x) = e. a) Compute the quadratic spline with the node points 0.1/2.1 with first derivative at the point 1/2 given by f'(1/2). 1/2 -1/2 b) Find an approximation for feda by evaluating f/2s(2)de. iv) Derive the Gaussian quadrature rule of the form [ f(x)x¹³dz ~ af(-a) + bf (0) + cf (a) (1) that is exact for all polynomials of as high a degree as possible; that is, determine a. a, b,and c. v) The formula for the secant method can also be written as ti+kN In Xn+1 = Establish this, and explain why it is inferior to the expression of *n+1 = - (1₂ (72) f)) (4.) in a computer program. xn-if(n) - Enf(n-1) f(an) - f(n-1) vi) Let T> 0 be a real number, N> 1 be an odd integer and 20, 21, 2N-1 be a set of real numbers. You are given the values = T (i+kN); and y+kN 2₁, for i= 0,1,2,... N-1 and all k € Z. N a) Define a trigonometric polynomial p: R R such that p(te) ye for all l € Z. = b) Outline a Matlab program which computes the coefficients of the trigonometric polynomial p.
Expert Answer:
Answer rating: 100% (QA)
It appears that youve got multiple questions related to numerical methods and computer programming as part of a math assignment here Lets address each question step by step i a The numbers that can be ... View the full answer
Related Book For
Posted Date:
Students also viewed these mathematics questions
-
Statement of profit or loss and other comprehensive income Year ended 31 Nine-month Dec-18 period ended 31 Dec-17 Revenue 2,200,228 1,561,138 Cost of sales -1,199,154 -877,354 Gross profit 1,001,074...
-
Delicious Cakes.com makes and sells specialty cakes in the Gulf region. Statement of profit or loss (Extract) AED AED Sales 500,000 Less: Cost of Sales Opening inventory 120,000 Purchases 300,000...
-
Write a one page reflection paper on a company that uses Lean Business Model. How to write a reflection paper? How did the article affect you? How does this article catch the reader's attention (or...
-
The following data are from the accounting records of Niles Castings for year 2: Units produced and sold . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85,000 Total revenues and costs Sales...
-
Compare the hiring choices of a monopsonistic and a competitive employer of workers. Which will hire more workers, and which will pay the higher wage? Explain.
-
A firm has total sales of $32 million. It has gross profit of $11 million, operating income of $9 million, and net income of $3 million. What is the firm's net profit margin? Question 10 options:...
-
Distinguish between the main approaches to impact assessment. Explain the three steps that lead to construction of an EIA index. Can environmental impact added ever be negative?
-
Ashley runs a small business in Boulder, Colorado, that makes snow skis. She expects the business to grow substantially over the next three years. Because she is concerned about product liability and...
-
2. The financial statements of ABC Limited are given below. ABC Limited Income Statement For the year ended December 31, 2010 Revenues and Gains Rupees Sales Revenue 35,000,000.00 Interest Income...
-
Tyre Recycling Inc. (TRI) operates a tire recycling plant in Murdochville, QC. Three years ago it acquired all of the shares of Tyre Distributors Corp. which sells tires to Canadian Tire and other...
-
In Java FileDisplay class Write a class named FileDisplay with the following methods: -Constructor. The class's constructor should take the name of the file as an argument. -displayHead. This method...
-
You want to purchase a bond that has 5.6667years(five years and eight months)left to maturity.It pays interest semiannually and has a coupon rate of 4.8% and a yield to maturity of 3.9%.Its face...
-
Factoring a small number, such as 36, may be pretty simple, but how might one go about factoring a larger number, such as 19,800?
-
a. Equipment with a book value of $65,300 and an original cost of $133,000 was sold at a loss of $14,000. b. Paid $89,000 cash for a new truck. c. Sold land costing $154,000 for $198,000 cash,...
-
Lamda corporation wants to acquire another company within its industry for $100m and it expects the acquisition to contribute to its free cash flow by $5m the first year, and this contribution is...
-
Discuss the concept of value proposition, positioning strategy, customer satisfaction and retention and their relationship to organizational and marketing success. Explain Briefly?
-
Components within your server room are failing at a rapid pace. You discover that the humidity in the server room is at 6 0 % and the temperature is at 8 0 degrees. What should you do to help reduce...
-
Use integration by parts to evaluate the following. Check your answer by taking the derivative. x2e-xdx
-
Give three reasons why the maturity of a bond is important.
-
What is the risk associated with the use of leverage?
-
What is the federal income tax treatment of accrued interest income on stripped Treasury securities?
-
Owing to a small federal grant from the Department of Housing and Urban Development (HUD) to the Town of Stillman, Nadine Gordimer, CPA has performed grant audits for the town in each of the past...
-
A public accounting firm has been engaged to perform the audit of a local, federally funded Housing Allowance Program. The objective of the program is to increase the housing standards of Agana...
-
The City of Central Falls has engaged Robert Cohen, CPA to audit the June 30, 1999 financial statements of the City's Water Department under the GAO's Government Auditing Standards. Cohen's report...
Study smarter with the SolutionInn App