Matlab function, MyRegulaFalsi, that takes in a function handle f, interval lower bound a, interval upper...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Matlab function, MyRegulaFalsi, that takes in a function handle f, interval lower bound a, interval upper bound b, and a tolerance tol. This function should perform the regula falsi iteration until if (x₂)| < tol and return all iterates x, as an array x,. (a) Use your regula falsi function to find an approximate root for f (x) = (x-3)³ sin(x) + 3.5 with interval [1, 3] and a tolerance 105. Print a table of the iterates xi and their corresponding function values f (xi). (b) Also use your function on the interval [1,2] with the same tolerance 10-5. Print a table of the iterates xi and their corresponding function values f (x;). Do the results change significantly? Why or why not? Matlab function, MyRegulaFalsi, that takes in a function handle f, interval lower bound a, interval upper bound b, and a tolerance tol. This function should perform the regula falsi iteration until if (x₂)| < tol and return all iterates x, as an array x,. (a) Use your regula falsi function to find an approximate root for f (x) = (x-3)³ sin(x) + 3.5 with interval [1, 3] and a tolerance 105. Print a table of the iterates xi and their corresponding function values f (xi). (b) Also use your function on the interval [1,2] with the same tolerance 10-5. Print a table of the iterates xi and their corresponding function values f (x;). Do the results change significantly? Why or why not?
Expert Answer:
Answer rating: 100% (QA)
Heres a MATLAB implementation of the MyRegulaFalsi function function xs MyRegulaFalsif a b tol xs if fa fb 0 errorFunction has the same sign at both interval bounds a and b end while true xn a fb b fa ... View the full answer
Related Book For
Artificial Intelligence A Modern Approach
ISBN: 9780134610993
4th Edition
Authors: Stuart Russell, Peter Norvig
Posted Date:
Students also viewed these databases questions
-
Read and briefly summarize the short excerpt from Story's "Commentaries on the Constitution of the United States (1833)" arguing for judicial supremacy....
-
The following data have been extracted from the books of Alfa Ltd . Year Sales Rs Profit Rs 2 0 1 9 5 , 0 0 , 0 0 0 ( Loss ) ( 2 5 , 0 0 0 ) 2 0 2 0 7 , 5 0 , 0 0 0 1 , 0 0 , 0 0 0 You are required...
-
Write a specification of a TIME ADT. In this question, use natural language to describe the following items. No C++ code is needed. Think about the design of your class rather than implementing it....
-
Solve the inequalities in Problems 4150. 7-5A < 2A + 7
-
Mr. T has not paid income tax or filed a tax return for the last eight years. He believes that the IRS can no longer assess back taxes for the first five of those years. Identify the tax issue or...
-
What is the role of the DNS in a CON? Does the DNS have to be modified to support a CON? What information, if any, must a CON provide to the DNS?
-
In the following contingency table, the row and column totals are presented, but the data for one row and one column have been omitted. Thus, there are data for only r 1 rows and c 1 columns. Show...
-
Why do some transactions require an entry in a fund and another in an account group? What impact would there be if a journal entry were made only in the fund or only in the account group?
-
A restaurant has a cafe and bar operation. The cafe provides 65% of total sales revenue with a 48% variable cost. The bar provides 35% of total sales revenue with a 38% variable cost. Answer the...
-
Transaction Entries Final Clean, a firm providing house-cleaning services, began business on April 1. The following accounts in its general ledger are needed to record the transactions for April:...
-
tes The management of Mecca Copy, a photocopying center located on University Avenue, has compiled the following data to use in preparing its budgeted balance sheet for next year: Cash Accounts...
-
A B C D E F G H 7-Additional sales units expected in years 3 and 4 B No additional investment in fixed assets, fixed costs or net working capital D O Determine the NPV of the expansion AND the PV of...
-
Mike sells superior energy drinks online. his monthly demand for energy drinks was 10,000 bottles and anual holding cost was estimated at 20% of unit cost. the mail order company that he orders...
-
calculate the six-month forward premium or discount for the Swiss franc versus the U.S. dollar. For simplicity, assume each month has 30 days. (XXX%) or (-XXX%) EXHIBIT 5.7 Exchange Rates Currencies...
-
How many payments will it take for your bank account to grow to $5000 if you deposit $200 at the end of each month and the account earns 9% compounded monthly?
-
Account Title Cash Accounts receivable Prepaid insurance Land Buildings Accumulated depreciation-buildings Office equipment Accumulated depreciation-office equipment Accounts payable Salaries payable...
-
Prepare a schedule of budgeted manufacturing overhead for July 2022. 3500 units to be produced variable manufactuing overhead per direct manufactuing labor hour $8 fixed manufactuing overhead...
-
The comparative statements of financial position of Menachem NV at the beginning and end of the year 2019 appear below. Net income of ¬34,000 was reported, and dividends of ¬23,000 were paid...
-
Find values for the probabilities a and b in joint probability table below so that the binary variables X and Y are independent. XYP(X,Y) 3/5 tt tf 1/5 ft ff a b
-
How do the potential threats from AI technology compare with those from other computer science technologies, and to bio-, nano-, and nuclear technologies?
-
The standard DECISION-TREE-LEARNING algorithm described in the chapter does not handle cases in which some examples have missing attribute values. a. First, we need to find a way to classify such...
-
How has the escalating role of board members and the audit committee affected corporate governance?
-
Describe regulatory influences on board members and management. What have been the effects of these influences?
-
For three organizational structure types (entrepre neurial, bureaucratic, adhocracy), briefly describe the likely characteristics of corporate governance.
Study smarter with the SolutionInn App