ECOR 2606 Study Guide - Midterm Guide: Polynomial Interpolation, Ordinary Differential Equation, Switch

84 views29 pages

Document Summary

The function () = 2 12 + 32 has a root between 1 and 5. The function () = 2 12 + 32 has a root between 6 and 9. Example: f(x) = 3 9 f 1(x) = 32. The function () = 2 12 + 32 has a root between 10 and 12. The function () = 2 12 + 32 has a root between 2 and 6. Must be given either a range of interest or a ballpark value fzero (f, [0 4]) % find root between 0 and 4 fzero (f, 4) % find root in surrounding of 4. To get the y max value plug the value back into the original function (i. e. ymax = f (best guess)) The function - sin(x) *exp (-0. 5x) has a minimum between 0 and 2. Perform the first three steps of a golden section search by hand. Changing optimization problem into a root finding problem.