The MATLAB Notebook v1.6

f =sin(x)-x/sqrt(2); plot(x,f); grid on; Note: The above example also illustrates a very important concept that the second fundamental theorem of optimization only helps us find LOCAL minima and maxima. None of the minima/ maxima is a GLOBAL minima/ maxima. ................
................