Question: NUMERICAL ANALYSIS :::: MATLAB Assignment 1 on False Regula Method of the problem in exercise 5.24. Write a code in MATLAB for the False position
NUMERICAL ANALYSIS ::::
MATLAB Assignment 1 on False Regula Method of the problem in exercise 5.24. Write a code in MATLAB for the False position method or (OR) use the algorithm in 5.15.
Use es = 0.005 as stopping criteria. Show the output in a table.
code + output plz matlab


5.24 Develop a subprogram for the false-position method that min- imizes function evaluations in a fashion similar to Fig. 5.11. Deter- mine the number of function evaluations (n) per total iterations. Test the program by duplicating Example 5.6. FIGURE 5.15 Pseudocode for the modified false position method. FUNCTION ModFalsePos(xl. xu, es, imax, xr, iter, ea) iter = 0 fl = f(x2) fu = f(xu) DO xrold = xr xr = XU - fu * (xl - x) / (f7 - fu) fr = f(xr iter = iter + 1 IF xr 0 THEN ea = Abs(xr-xroid) / xr) * 100 END IF test = t * fr IF test 0 THEN x1 = x f] = f(x1) i] = 0 iu = iu + 1 IF i 2 THEN fu = fu / 2 ELSE ea = 0 END IF IF ea
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
