In question 6 of the assignment we are asked to plot the absolute error vs number of function evaluations as the tolerance changes. That’s 3 variables that we would have to plot, not 2, so I’m not sure what is is exactly we’re plotting. Is it the error divided by the number of function evaluations vs tolerance, or is it that we’re supposed to create those 2 plot for every tolerance? If not, what else are we supposed to be plotting?
The vertical axis should have error in log scale (semilogy)
and the horizontal should have No of function evals.
(The tol is not explicitly shown in the plot.)