Page 1 of 1

Question 3. a- Complete the following MATLAB function to implement the secant method. function x = my_secant(f, a, b, to

Posted: Wed Apr 27, 2022 4:59 pm
by answerhappygod
Question 3 A Complete The Following Matlab Function To Implement The Secant Method Function X My Secant F A B To 1
Question 3 A Complete The Following Matlab Function To Implement The Secant Method Function X My Secant F A B To 1 (22.13 KiB) Viewed 32 times
Question 3. a- Complete the following MATLAB function to implement the secant method. function x = my_secant(f, a, b, tol, N) % An implementation of secant method for solving f(x) = 0. % a and b are the two initial guesses, i.e., X0 = a, and % x1 = b. % tol is the tolerance on RELATIVE difference between the % current approximation and the previous one. % N is the maximum allowed number of iterations.