1. One numerical method for calculating by hand the cube root of some number N involves...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. One numerical method for calculating "by hand" the cube root of some number N involves an extension of an algorithm developed by Babylonian mathematicians over 4000 years ago for calculating the square root of any number. It is an iterative procedure defined by the recurrence relation: 2 x+1= N 2 =3x+3x = x1 Write a MATLAB script that implements this algorithm to calculate the cube root of any number N. Use x = N for the initial estimate to get your iterative loop started. Use a while loop to have your iterations stop when the estimated relative error E is less than 1.0 x 102, where E 1. Use fprintf to print "The cube root of N is approximately X". Have fprintf print the number assigned to the variable N in integer format and the number assigned to the variable X as a real number with 4 digits to the right of the decimal point. Use your script to estimate V6578934. 1. One numerical method for calculating "by hand" the cube root of some number N involves an extension of an algorithm developed by Babylonian mathematicians over 4000 years ago for calculating the square root of any number. It is an iterative procedure defined by the recurrence relation: 2 x+1= N 2 =3x+3x = x1 Write a MATLAB script that implements this algorithm to calculate the cube root of any number N. Use x = N for the initial estimate to get your iterative loop started. Use a while loop to have your iterations stop when the estimated relative error E is less than 1.0 x 102, where E 1. Use fprintf to print "The cube root of N is approximately X". Have fprintf print the number assigned to the variable N in integer format and the number assigned to the variable X as a real number with 4 digits to the right of the decimal point. Use your script to estimate V6578934.
Expert Answer:
Answer rating: 100% (QA)
Here is a MATLAB script that implements the algorithm to calculate the cube root of a number N matl... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Mark's tour company offers weekly tour packages that include return flights from Ottawa to Hawaii once every week. She contracted Phoenix Air Travel for $1,600,000 to use their 100-seater aircrafts...
-
Bruce Corporation makes four products in a single facility. These products have the following unit product costs: Direct materials Direct labor Variable manufacturing overhead Fixed manufacturing...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
A charged isolated metal sphere of diameter 10 cm has a potential of 8000 V relative to V = 0 at infinity. Calculate the energy density in the electric field near the surface of the sphere.
-
Imagine you are a procurement manager, IS manager or consultant who needs to demonstrate the cost savings of e-procurement to a senior management team in order to obtain approval for investment in an...
-
Which of Panamas two thrusts do you think was the more difficult? Why?
-
Compute payback period-unequal cash inflows (Learning Objective 2) Sikes Hardware is adding a new product line that will require an investment of \(\$ 1,454,000\). Managers estimate that this...
-
Figure shows the BOMs for two products. A and B. Table shows the MPS quantity start date for each one. Table contains data from inventory records for items C, D, and E. There are no safety stock...
-
Prepare a Source and Use statement from the following information 2012: Profit Margin=98/1800=5.44% Equity multiplier=720/300=2.4 Asset turnover=1800/720=2.5 Return on Equity=5.44%*2.4*2.5=32.64%...
-
Sequential Method Jasmine Company manufactures both pesticide and liquid fertilizer, with each product manufactured in separate departments. Three support departments support the production...
-
Saturn is a manufacturing company. The following information is available about J66. one of the raw materials used in manufacturing: Purchase price Usage per day Delivery lead time (days) Maximum...
-
(a) Consider each of the following companies. In each case suggest a fixed income security the company could issue to raise funds. Explain any specific features that make the security appropriate for...
-
What SQL feature can you DO and enable to check all of your databases for a particular setting (e.g. Recovery Model not equal to Simple) every day?
-
Given a normal distribution with =100 and =5, if you select a random sample of n=25, what is the probability that the sample mean is above 103?
-
Explain why the textile and auto industries in the US have a history of high protection.
-
A firm has determined its cost of each source of capital andoptimal capital structure, which is composed of the followingsources and target market value proportions: Long term debt has a40% target...
-
Frontland Advertising creates, plans, and handles advertising campaigns in a three-state area. Recently, Frontland had to replace an inexperienced office worker in charge of bookkeeping because of...
-
Continuation of S10-5: cash budget (Learning Objective 3) Refer to S10-5. Grippers has $8,300 cash on hand on January 1. The company requires a minimum cash balance of $7,500. January cash...
-
Revise cash payments for purchases (Learning Objective 4) Refer to the original Whitewater Sporting Goods Data Set item 5. Suppose Whitewater Sporting Goods pays for 60% of inventory purchases in the...
-
Revise cash collections budget (Learning Objective 4) Turn to the original Whitewater Sporting Goods Data Set item 4. Suppose 70% of sales are cash and 30% are credit. Revise Whitewater's sales...
Study smarter with the SolutionInn App