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?
-
Beatles Inc. has 1,000 shares issued and outstanding. The shares are owned as follows: How many shares is Paul considered to own for redemption purposes? Name Paul John Corp. (Paul owns 70% of John...
-
1. Uber and Airbnb Innovative Digital Business Models Facilitate Global Expansion In what ways are the Uber and Airbnb business similar or different? 2. What challenges did Uber and Airbnb face when...
-
Assume that you are using attribute sampling to test the controls over revenue recognition of the Packet Corporation, a public company, and will use the results as part of the evidence on which to...
-
A seashore sand mixture contains 85% insoluble sand, 12% salt, and 3% water by weight. 100 kilograms of this mixture is to be washed by batch operations so that it will contain less than 0.2% salt...
-
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...
-
The Slattery Company was formed on January 1, 2010 to build a single product. The company issued no-par common stock on that date for $300,000 cash. The product costs $20 to make, all of which is...
-
7. Assets Current assets Net fixed assets 2021 $1,089 4,144 2022 Consider the following abbreviated financial statements for Parrothead Enterprises: 2022 and 2021 Partial Balance Sheets Liabilities...
-
Toyota Co. is considering replacing a machine that checks the safety of gas pedals from outside venders. The old machine was purchased 5 years ago for $20,000 and is being depreciated on a...
-
Match the risk categories below with the risk management tool used to monitor and/or mitigate the risk. Choose from the following tools: Strategic Risk, Liquidity Risk, Interest Rate Risk, Credit...
-
consider pricing a one-year swap on December 11, Year 1, given the following yield information pertaining to floating rates: We would like to use this information to derive the fixed swap rate. The...
-
2.- A binomial model is used to explain the changes in the price of a stock. The current spot price is $100. The u factor is 1.12 and d is 0.87 1. Calculate all possible values of the Stock price at...
-
A Mintel study asked consumers if electronic communications devices influenced whether or not they bought a certain car. The table on the next page gives the results classified by household income:...
-
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...
-
a) Differentiate (with illustration) the differences between non-blocking and blocking message passing operation. (8 marks) b) Describe THREE (3) advantages of threaded programming as compared to...
-
V. A room stores many equipment types, and an equipment type can be stored in many rooms Activity #2 Given the incomplete ER diagram below: BadgeNo Name TRAFFIC POLICE Rank issues Summon No Offense...
-
(4) Shown below are several variable declarations in C. There are comments indicating what each variable is for. Decide if the declaration is correct or not. If incorrect, determine what needs to...
Study smarter with the SolutionInn App