Question: Please provide Matlab code! Determine the roots of f(x) 2-21x +18x -2.75x graphically, using MATLAB. b) Determine the first root ofthe function usingthe bisection technique.

Please provide Matlab code!

Please provide Matlab code! Determine the roots of f(x) 2-21x +18x -2.75x

Determine the roots of f(x) 2-21x +18x -2.75x graphically, using MATLAB. b) Determine the first root ofthe function usingthe bisection technique. To dothis, create a function to implement the bisection technique, and use it to solve the problem Your function should accept the following inputs: f, function handleto an anonymous function XL the lower bound xu the upper bound gs, the convergence criteria maxit the maximum number of iterations Use your function with&L -1, zui 0 and es 1 and maxit 20. c) Create a function to implement the false position technique, and useit to solve this problem. It should have the sameinputs asspecified in part b. You can check your resultsby comparingyour output to the following Results using Bisection iteration 1 -0.500000 NaN -0.250000 100.0000 33.3333 -0.375000 4 -0.437500 14.2857 5 -0.406250 7.6923 -0.421875 3.7037 7 -0.414063 1.8868 0.9346 -0.417969 Results using False Position Iteration xr. -0.287425 NaN 2 -0.379449 24.2520 -0.405232 6.3626 4 -0.412173 1.6840 5 -0.414022 0.4464

Determine the roots of f(x) = -12- 21x +18x^2 + 1 graphically, using MATLAB. b) Determine the first root of the function using the bisection technique. To do this, create a function to implement the bisection technique, and use it to solve the problem. Your function should accept the following inputs: f, a function handle to an anonymous function xL, the lower bound es, the upper bound es, the convergence criteria maxit, the maximum number of iterations Use your function with xL = -1, xu = 0 and es = 1 and maxit = 20. c) Create a function to implement the false position technique, and use it to solve this problem. It should have the same inputs as specified in part b. You can check your results by comparing your output to the following Revolts using Bisection Iteration Results using False Position

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!