Improve the accuracy in Exer. 7.36.
know is that the true extreme point is in the interval (xi−1, xi+1). A more accurate algorithm may take this interval as a starting point and run a Bisection method (see Chapter 4.6.2) to find the extreme point x¯ such that f ′ (¯x) = 0. In class MinMax, add a method _refine_extrema, which goes through all the interior local minima and maxima and solves f ′ (¯x) = 0. Compute f ′ (x) using the Derivative class (Chapter 7.3.2 with h ≪ xi+1− xi−1. Name of program file: minmaxf2.py.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here