One numerical method for calculating the cubic root of a number VX is by using iterations....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
One numerical method for calculating the cubic root of a number VX is by using iterations. The process starts by choosing a value x as a first estimate of the solution. Using this value, a second a more accurate value x2 can be calculated with x = (2+2x)/3, which is then used for calculating a third, and more accurate value X3, and so on. The general equation for calculating the value of X+1 from x; is X = (= 2 + 2x) / 3 X Xi+1 = Write an m-file which uses x = 100 as the first estimate to calculate the cube-root of 100 (x1 = the cube root of the number you're calculating). Stop the looping when the relative error with each iteration is smaller than 1e-5. I.e. E = = +1*. Determine the number of iterations required to achieve this criterion Xi and print out the value using fprintf. E.g. The number of iterations required is 16 and the cube root of 999 is 9.996666, using x=999. One numerical method for calculating the cubic root of a number VX is by using iterations. The process starts by choosing a value x as a first estimate of the solution. Using this value, a second a more accurate value x2 can be calculated with x = (2+2x)/3, which is then used for calculating a third, and more accurate value X3, and so on. The general equation for calculating the value of X+1 from x; is X = (= 2 + 2x) / 3 X Xi+1 = Write an m-file which uses x = 100 as the first estimate to calculate the cube-root of 100 (x1 = the cube root of the number you're calculating). Stop the looping when the relative error with each iteration is smaller than 1e-5. I.e. E = = +1*. Determine the number of iterations required to achieve this criterion Xi and print out the value using fprintf. E.g. The number of iterations required is 16 and the cube root of 999 is 9.996666, using x=999.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
One numerical method for calculating the cubic root of a number, 3P is in iterations. The process starts by choosing a value x1 as a first estimate of the solution. Using this value, a second, more...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Avishek has $49,583.72 and wants to buy a T-bill with a face value of $50,000.00 that matures on 2020-04-17. The annual simple interest rate is 3.000% and the daycount convention is ACT / 360. What...
-
Wong testified that he had looked for the note at a third-party storage facility. If the note had been found there, would it mean that the note had been "transferred" to the facility, making the...
-
Assume that the maximum amount of that Romain is willing to pay for a chocolate bar is $5.00 and the current market price is $2.50. At this price Romain is willing and able to purchase 6 chocolate...
-
Find the z-score that has 15.6% of the distributions area to its right. Find the indicated z-score.
-
The following activities occur at Greenwich Corporation, a company that manufactures a variety of products. a. Various individuals manage the parts inventories. b. A clerk in the factory issues...
-
How has the implementation of process intensification strategies, such as dividing-wall distillation columns, impacted energy efficiency and operational costs in large-scale industrial distillation ?
-
Pequity Company purchased 85% of the common stock of Sequity Company on April 1, Year 1 for total consideration of $545,000 cash plus $50,000 of contingent consideration as measured according to GAAP...
-
Monette Company is a manufacturer that is preparing its budget for the upcoming quarter. Management has prepared the following summary of it budgeted cash flows: September $122.000 July August Total...
-
Find the probability that among six randomly selected people, exactly four of them have brown eyes. Assume that 40% of the population has brown eyes based on data from Dr. P. Sorita at Indiana...
-
The management of Brawn Engineering is considering three alternatives to satisfy an OSHA requirement for safety gates in the machine shop. Each gate will completely satisfy the requirement, so no...
-
A new integrated circuit board is being developed for use in computers. In the early stages of development, a lack of quality control results in a 0.2 probability that a manufactured integrated...
-
If six people are randomly selected, find the probability that none of them has brown eyes. Assume that 40% of the population has brown eyes based on data from Dr. P. Sorita at Indiana University.
-
Show that the Fourier transform of an imaginary and odd sequence is real and odd.
-
If they spin with a linear speed of 2.4 m/s , and curl into a ball with a radius of 1.4 cm , what is the centripetal acceleration they produce?
-
For the given transfer function: Vo(s) / Vi(s) = (s^2C^2R^2 + 1) / (s^2C^2R^2 + 4sCR + 1) Assumiing that 1/(CR) = 120 PI so write the matlab code to find the magnitude plot
-
Create a vector (name it vet C) that has 12 elements of which the first is 5, the increment is 4 and the last element is 49. Then, by assigning elements of vctC to new vectors, create the following...
-
Show that the location of the centroid yc of the half-circle area shown is given by yc = 4R/3.The coordinate yc can be calculated by: dA dA dy
-
The equation of a circle is xz + yz = Rz, where R is the radius of the circle. Write a program in a script file that first derives the equation (symbolically) of the tangent line to the circle at the...
-
In 2025, Orasco SA had net sales of R\($600,000\) and cost of goods sold of R\($360,000. Operating\) expenses were R\($153,000,\) and interest expense was R\($7,500.\) The corporations tax rate is...
-
Gorton Ltd. has 30,000 shares of 10 par value ordinary shares outstanding when it announces a 2- for-1 share split. Before the split, the shares had a market price of 120 per share. After the split,...
-
The equity section of Ahab SA at December 31 is as follows. Instructions From a review of the equity section, as chief accountant, write a memo to the president of the company answering the following...
Study smarter with the SolutionInn App