3.24 // steffensen's method is a scheme for finding a numerical solution of an equation of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3.24 // steffensen's method is a scheme for finding a numerical solution of an equation of the form f(x) = 0 that is similar.to Newton's method but does not require the derivative of f(x). The solution process starts by choosing a point x;, near the solution, as the first estimate of the solution. The next estimates of the solution X; + 1 are calculated by: flx;)1 X; +1 = X;f(x; + f(x;)) - f(x; ) Write a MATLAB user-defined function that solves a nonlinear equation with Steffensen's method. Name the function Xs = SteffensenRoot(Fun, Xest), where the output argument Xş is the numerical solution. The input argument, Fun, is a name for the function that calculates f(x) for a given x (it is a dummy name for the function that is imported into SteffensenRoot), and Xest is the initial estimate of the solution. The iterations should stop when the estimated relative error S(x, y) - 9x + 25y – 225 - 0 is smaller than 10-6. The number of iterations should be limited to 100 (to avoid an infinite loop). If a solution with the required accuracy is not obtained in 100 iterations, the program should stop and display an error message. Use the function SteffensenRoot to solve Problems 3.2 and 3.3. 3.2 Determine the root of f(x) = x- 2e* by: (a) Using the bisection method. Start with a=0 and b= 1, and carry out the first three iterations. (b) Using the secant method. Start with the two points, x, - 0 and x - 1, and carry out the first three iter- ations. (c) Using Newton's method. Start at x, - 1 and carry out the first three iterations. 3.3 The location i of the centroid of an arc of a circle is given by: rsina 3r Determine the angle a for which i First, derive the equation that must be solved and then determine the root using the following methods: (a) Use the biscction method. Start with a-0.5 and b- 1.5, and carry a out the first four iterations. (b) Use the secant method. Start with the two points a, 0.5 and az = 1.5, and carry out the first four iterations. 3.24 // steffensen's method is a scheme for finding a numerical solution of an equation of the form f(x) = 0 that is similar.to Newton's method but does not require the derivative of f(x). The solution process starts by choosing a point x;, near the solution, as the first estimate of the solution. The next estimates of the solution X; + 1 are calculated by: flx;)1 X; +1 = X;f(x; + f(x;)) - f(x; ) Write a MATLAB user-defined function that solves a nonlinear equation with Steffensen's method. Name the function Xs = SteffensenRoot(Fun, Xest), where the output argument Xş is the numerical solution. The input argument, Fun, is a name for the function that calculates f(x) for a given x (it is a dummy name for the function that is imported into SteffensenRoot), and Xest is the initial estimate of the solution. The iterations should stop when the estimated relative error S(x, y) - 9x + 25y – 225 - 0 is smaller than 10-6. The number of iterations should be limited to 100 (to avoid an infinite loop). If a solution with the required accuracy is not obtained in 100 iterations, the program should stop and display an error message. Use the function SteffensenRoot to solve Problems 3.2 and 3.3. 3.2 Determine the root of f(x) = x- 2e* by: (a) Using the bisection method. Start with a=0 and b= 1, and carry out the first three iterations. (b) Using the secant method. Start with the two points, x, - 0 and x - 1, and carry out the first three iter- ations. (c) Using Newton's method. Start at x, - 1 and carry out the first three iterations. 3.3 The location i of the centroid of an arc of a circle is given by: rsina 3r Determine the angle a for which i First, derive the equation that must be solved and then determine the root using the following methods: (a) Use the biscction method. Start with a-0.5 and b- 1.5, and carry a out the first four iterations. (b) Use the secant method. Start with the two points a, 0.5 and az = 1.5, and carry out the first four iterations.
Expert Answer:
Answer rating: 100% (QA)
solution Copyable code define procedure Sub rootsFindingBySteffensen Declare the needed vari... View the full answer
Related Book For
Discovering Advanced Algebra An Investigative Approach
ISBN: 978-1559539845
1st edition
Authors: Jerald Murdock, Ellen Kamischke, Eric Kamischke
Posted Date:
Students also viewed these mechanical engineering questions
-
A parabola with an equation in the form y = ax2 + bx + c passes through the points (-2, -32), (1, 7), and (3, 63). a. Set up systems and use matrices to find the values of a, b, and c for this...
-
An AC waveform has an equation of the form v = 2002 sin (314t + /3) volts. Calculate the circuit current in rectangular form if it flows through an impedance of 20 k.
-
Derive an equation in the form hc = f(T, D, U??) for flow of air over a long horizontal cylinder for the temperature range 0?C to 100?C, using Equation (7.3) as a basis.GIVENFlow over a long...
-
When we create our own Market Limitations In the mid-1960s a new electronics company was founded with a unique high-tech product a new type of computer. Thanks to its engineering know-how LOCKDOWN...
-
On December 31, 2011, Sisek Company borrowed $800,000 with a 10-year, 9.75 percent note, interest payable semiannually on June 30 and December 31. Cash in the amount of $792,800 was received when the...
-
You have been asked to appraise the adequacy of control over the purchase and use of direct and indirect materials and supplies. In order to appraise the adequacy of the control over this item, you...
-
Foxey Flowers had income before income tax of \(\$ 80,000\) and taxable income of \(\$ 70,000\) for 2007, the company's first year of operations. The income tax rate is \(40 \%\). 1. Make the entry...
-
You have an opportunity to purchase a piece of vacant land for $30,000 cash. If you buy the property, you plan to hold it for 15 years and then sell it at a profit. During this period, you would have...
-
Through poor financial management, Albert has amassed $900 000 in credit card debt.This card charges a 40% annual rate and compounds monthly.Albert plans to clear his balance over 3 years. a) Using...
-
Kool Air (Pty) Limited, a manufacturer of industrial fans, has a taxable income of R2 400 000 for its financial year ended 28 February 2021, before taking the following into consideration: In...
-
At 2019 LR Construction has a face debt value of 20.59M trading at 87% with a pre-tax weigthed cost of 6.22%. LR common equity for the year was valued at 118.46M and preferred equity for 11.04M. The...
-
(c) For a rapidly growing Japanese company, the growth rate is projected to be 20% for the next two years and 10% for the following year. At the end of 3 years, the growth rate is expected to settle...
-
NorthCo changed to the straight-line method of depreciating its capital assets. It had previously been using the declining balance method. This change will be applied retroactively. The tax rate for...
-
Suppose that an Apple iPhone costs $200 in the United States, 60 in the United Kingdom, and 35,000 in Japan. If the exchange rate between the pound and the dollar is $1.80 = 1, the real exchange rate...
-
Pizza Pier issues 9%, 10-year bonds with a face amount of $70,000 for $65,639 on January 1, 2018. The market interest rate for bonds of similar risk and maturity is 10%. Interest is paid semiannually...
-
Calculate Helen's intake and output for the 7am-3pm shift. At breakfast she drank 1/2 cup of tea, 4 oz glass orange juice. At lunch she drank 6 oz chicken broth and 2 oz jello. She also drank 4 oz...
-
Adjusted Account Balances Merchandise inventory (ending) Other (non-inventory) assets Total liabilities K. Valley, Capital K. Valley, Withdrawals Sales Sales discounts Debit $ 44,000 Credit 176,000 $...
-
A company pledges their receivables so they may Multiple Choice Charge a factoring fee. Increase sales. Recognize a sale. Collect a pledge fee. Borrow money. Failure by a promissory notes' maker to...
-
Sketch each hyperbola on your paper. Write the coordinates of each vertex and the equation of each asymptote. a. b. c. d. e. x = 4/cos t -1 y = 2 tan t + 3 f. x = 3 tan t + 3 y = 5/cos t 4.
-
Use the equation = 818.13 + 0.434571x to predict a y-value for each x-value. a. x = 1954 b. x = 1978 c. x = 1989 d. x = 2004
-
Write an equation for the line that fits each situation. a. The length of a rope is 1.70 m, and it decreases by 0.12 m for every knot that is tied in it. b. When you join a CD club, you get the first...
-
Assume that Boardmaster sold skateboards to a department store for \($35,000\) cash. How would this transaction affect Boardmasters accounting equation? a. Increase both assets and stockholders...
-
Generally Accepted Accounting Principles (GAAP) are created by the a. Securities and Exchange Commission (SEC). b. Financial Accounting Standards Board (FASB). C. Institute of Management Accountants...
-
Boardmaster is famous for custom skateboards. At the end of a recent year, Boardmasters total assets added up to \($622\) million, and stockholders equity was \($487\) million. How much did...
Study smarter with the SolutionInn App