f(x) f(x)=sin(x2)+x-1 f2(x) = x 10-1 f(x) = x52x3 + x - 1 Xu |51%...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
f(x) f(x)=sin(x2)+x-1 f2(x) = x 10-1 f(x) = x52x3 + x² - 1 Χι Xu |ε51% 0 1.2 0.01 0 1.5 0.005 0 1.6 0.002 Develop a Matlab code that implements the bisection method to locate a root of an equation f(x) = 0. Your code should take the inputs as function f, lower bound x₁, upper bound Xu, and termination criteria & and imax (i.e. 100). The program outputs the approximate root xr, the number of iterations i required, and the final relative percent approximate error &a. Tabulate the results generated for three equations according to given parameters in the table above. (You can do it in a one M-file without creating a function) f(x) f(x)=sin(x2)+x-1 f2(x) = x 10-1 f(x) = x52x3 + x² - 1 Χι Xu |ε51% 0 1.2 0.01 0 1.5 0.005 0 1.6 0.002 Develop a Matlab code that implements the bisection method to locate a root of an equation f(x) = 0. Your code should take the inputs as function f, lower bound x₁, upper bound Xu, and termination criteria & and imax (i.e. 100). The program outputs the approximate root xr, the number of iterations i required, and the final relative percent approximate error &a. Tabulate the results generated for three equations according to given parameters in the table above. (You can do it in a one M-file without creating a function)
Expert Answer:
Answer rating: 100% (QA)
1 clear all clc fx sinx2x1 fplotf012 dispRoot is XYginput1 dispX 2 clear all clc fx x101 fplotf015 d... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
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...
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
Look at the expansion joint in the photo of Figure 15.13. Would you say the photo was taken on a warm day or a cold day? Why?
-
During the first half of 2010, Mad Catz Interactive, Inc., completed its fiscal year, filed reports with the SEC, and issued various reports to the public. Match each date in the table below with the...
-
Select the best answer. The mass of a sports utility vehicle is about (a) 1300 kg. (b) 13 000 g. (c) 130 000 mg.
-
On February 11, 2009, plaintiff Levista, Inc. (plaintiff) filed against defendant Ranbaxy Pharmaceuticals, Inc. (defendant), pursuant to this Courts diversity jurisdiction under 28 U.S.C. 1332(a),...
-
The Chickn-Pickn fast-food chain is considering how to expand its operations. Three types of retail outlets are possible: a lunch counter operation designed for office buildings in downtown areas, an...
-
= 12, where Let A, B M(R) and let n 1 be an integer such that Cn C = AB - BA. Prove that n is even and C4 = 12. Hint: use Problem 2.15.
-
A country analysis for Dunnes Stores (Irish hypermarket) entering the Belgium market. a. Political analysis b. Economic analysis c. Legal analysis d. Cultural analysis (e.g. market demand, industry...
-
Goodwill under IFRS 3 Business Combinations is the difference between the aggregate of the fair value of consideration transferred, the amount of non-controlling interests at acquisition date, and...
-
IFRS 3, unlike US GAAP, allows non-controlling interests at acquisition date to be recognized at either full fair value or a proportionate share of the fair value of identifiable net assets of the...
-
The International Airlines Group (IAG) was formed during 2011 and is the parent company of Aer Lingus, British Airways, Iberia, and Vuelling. It is a Spanish registered company with shares traded on...
-
A business combination is when an acquirer obtains control of one or more businesses. In reality, there are different ways to achieve this objective. Required: 1. Describe four forms of business...
-
The book value of shares issued in exchange for control rights should be used as the basis of measuring the initial cost. True/False
-
how to make polythene from potato, explain all details as like as you are starting this business firstly?
-
It is possible to investigate the thermo chemical properties of hydrocarbons with molecular modeling methods. (a) Use electronic structure software to predict cHo values for the alkanes methane...
-
Find the minimum and maximum values of the function on the given interval by comparing values at the critical points and endpoints. y = z 5 80z, [3, 3]
-
Find the equation of the line with the given description. Slope 5, passes through (0, 0)
-
Let c be a scalar, a and b be vectors, and X = (x, y, z). Show that the equation (X a) (X b) = c 2 defines a sphere with center m = 1/2 (a + b) and radius R, where R 2 = c 2 + 1/2 (a b) 2 .
-
The three major inputs into the manufacturing process are direct materials, direct labour and factory overheads. If the costs of any of these are not controlled, they may inflate the cost of...
-
Listed below are selected financial data from the accounting records of Innovative Computers Pty Ltd for the year ended 30 June 2019. Required (a) Prepare an income statement for the year ended 30...
-
Smart Manufacturing Systems Pty Ltd provides the following information. Required (a) Calculate total manufacturing costs for the period ending 30 June 2019. (b) Calculate cost of goods manufactured...
Study smarter with the SolutionInn App