Question: solve it using matlab Write a Matlab code that uses line search to find the minimum of, r2 f(r)2sin which lies in the interval from
solve it using matlab
Write a Matlab code that uses line search to find the minimum of, r2 f(r)2sin which lies in the interval from 11-0 to zU-4. Use a tolerance of 10-6 for convergence. Note and report the number of operations (or iterations) the solution makes. Next, use interval reduction to get the minimum. Note the same. Finally, modify your last code so that it's a golden-section search and find the minimum Compare the number of operations and the time requirement (using tic/toc command) for the three methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
