(* finding local minima for a function of one variable *) (* To run on command line: math -run "< Newton ] FindMinimumPlot [F[x], {{x, x0}}, Method -> Newton, PlotStyle->{Thick}, BaseStyle->{FontWeight->"Bold", FontSize-> 16} ] xmin = x /. answer[ [2] ] ymin = answer[ [1] ] Print[" "] Print["Value of X that minimizes F, xmin = ", xmin] Print[" "] Print[" F(xmin)= ", ymin] Print[" "]