Answer the following question about this MATLAB function: I get the output x = 0.3333 after one
Question:
Answer the following question about this MATLAB function:
I get the output x = 0.3333 after one iteration, which is not the correct answer. What is required to fix this code?
Transcribed Image Text:
1 2 3 4 5 6 7 8 function out = problem3_10 x = 0; err = 100; while err > 10^(-6) x = x err = end out = x; (x^3-2*x^2-3*x+1)/(3*x^2-4*x-3); x^3-2*x^2-3*x+1;
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (4 reviews)
There appears to be a problem with the provided MATLAB code The while loop is incomplete and the var...View the full answer
Answered By
Mugdha Sisodiya
My self Mugdha Sisodiya from Chhattisgarh India. I have completed my Bachelors degree in 2015 and My Master in Commerce degree in 2016. I am having expertise in Management, Cost and Finance Accounts. Further I have completed my Chartered Accountant and working as a Professional.
Since 2012 I am providing home tutions.
3.30+
2+ Reviews
10+ Question Solved
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Question Posted:
Students also viewed these Engineering questions
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
THIRD AVENUE SOFTWARE HEALTH-CARE APP PROJECT This case is new for the ninth edition of Information Technology Project Management . The case provides an opportunity to apply agile and Scrum...
-
Cloud computing offers a way of delivering computing resources instantly, on-demand, and cheaply. Cloud computing attracts companies of different sizes. Citrix Cloud is a platform that hosts and...
-
Given the monthly returns that follow, find the R2, alpha, and beta of the portfolio. Compute the average return differential with and without sign. Do not round intermediate calculations. Round your...
-
When would an ABC classification inventory system be appropriate?
-
What is innovation 2.0 and how is it different from innovation 1.0? How can an organization use the methodologies, tools and techniques of innovation 2.0 to bolster its innovative capabilities and...
-
When creating association rules, why is it common to only consider rules with a support measure above a minimum threshold? a. Rules with too low of a support are unlikely to be true. b. Rules with...
-
Willie Lohmann travels from city to city in the conduct of his business. Every other year he buys a used . car for about $12,000. The auto dealer allows about $8000 as a trade-in allowance with the...
-
Describe a situation where you were responsible for getting others to make a change. What role did you play and what actions did you take? What was the outcome? If you had to do it again, would you...
-
Use Picards method to find a root of the system of equations using the initial guesses x (0) 1 = 0 and x (0) 2 = 0. f(x, x) = ex1 - x2 f2(x, x) = x + x 3x2 - (3.7.6) (3.7.7)
-
Demonstrate that Newtons method exhibits quadratic convergence for the problem in Example 3.7. Data from Example 3.7 Repeat Example 3.5 using Newtons method. Data from Example 3.5 Use Picards method...
-
Consider the market for cars. Which determinant of supply is affected by each of the following events? Choose from: prices of related goods, technology, prices of inputs, expectations, and the number...
-
True Or False Offering a better price to a third person, knowing that this could induce this person to breach their contract with the plaintiff, does not constitute interference with contractual...
-
For a misrepresentation, a defendant a. is not liable for negligent misrepresentation if they do not receive compensation directly from the plaintiff. b. is liable to those whom they intend to reach...
-
True Or False Innocent misrepresentation is a viable cause of action in product liability cases even when the plaintiff does not buy the product directly from the defendant.
-
A defendant sued for strict liability can raise the defense of a. assumption of risk. b. proximate cause. c. contributory negligence. d. all of the above.
-
What are the elements of interference with existing contractual relations? a. Is this tort committed by offering a third person a better price, knowing that doing so could induce this person to...
-
Your company has decided to switch from its computerized transaction-based accounting system to an ERP system. Your boss understands that this system is capable of tracking accounting and other...
-
What is taxable income, and what is the formula for determining taxable income?
-
It is proposed to build a 8 story building with a footprint of 15 m 20 m, resting on a mat foundation of the same dimensions, in a saturated clay where c u = 50 kN/m 2 , = 19.0 kN/m 3 . Assume...
-
A dilatometer test was conducted in a sand deposit at a depth of 6 m. The groundwater table was located at a depth of 2 m below the ground surface. Given, for the sand: d = 14.5 kN/m 3 and sat =...
-
A 15 m 20 m mat foundation shown in Figure P10.7 carries a building load of 36 MN and is placed at 3.0 m depth below the ground level. a. Find the net applied pressure on the underlying ground. The...
-
Jordan Company has provided the following Year 2 data. Budget Sales variable product costs Variable selling expense other variable expenses Fixed product costs Fixed selling expense other fixed...
-
Deeptika's only asset purchase for 2023 was a computer on 4/20/23 for $4,000 (used in her business). Compute depreciation expense for 2023 and 2024 using MACRS. Half-year or mid-quarter convention? ...
-
For the following functions, find: i) x-intercept ii) y-intercept iii) Holes iv) Vertical Asymptotes v) Horizontal/Oblique Asymptotes vi) The End Behaviours vii) Defining Intervals viii) Sketch by...
Study smarter with the SolutionInn App