Question: 1-close all clear clc 3- s sqrt (x) sin(x)-1: idefining the function to caleulate the root x1 1/ lowe r bound xu-87 %upper bound 8-

 1-close all clear clc 3- s sqrt (x) sin(x)-1: idefining the

1-close all clear clc 3- s sqrt (x) sin(x)-1: idefining the function to caleulate the root x1 1/ \lowe r bound xu-87 %upper bound 8- 10-xlower Xupper (xl pi)/180: (xu + pi) /180; = 12 13- for i-1:8 \loop for 8 times 14 15 16- 17 18- 19- 20 end 21- disp ((xroot+180) /pi);the end xroot = (xupper. f (xlower)-xiowe r * f(xupper))/(f(xlower)-t(upper)); if f(xroot) -o return elseif f(xroot (xlower)0 %root is in the left of xroot xupper-xrooti end Command Window New to MATLAB? See resources for Getting Started Undefined function or varlable' Error in testFunction (Line 5) f-egrt (x) *Sin(x)-I; %defining the runction to calculate the root Add to the above MATLAB code: 1) 2) 3) 4) 5) Fix the error "testFunction" (line 5) Make the code show all the iterations. What is the final root for this False Position code. Make the code compute the approximate error. Make a plot of the function on the code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!