So I have this:
a=14;
max = FindMaximum[x^3 - a x^2 - x + 1, {x, -2, 15}]
(* {1.01781, {x -> -0.0355787}}*)
And I plotted this:
Plot[f1[a, x], {x, -.5, .5}, Epilog ->
{PointSize[Medium], Red, Point[{-0.0355786613147075`, 1.0178118484082224`}]}]
But it's not neat enough. So I tried to put in max in the commands.
Plot[f1[a, x], {x, -.5, .5}, Epilog -> {PointSize[Medium], Red, Point[{max}]}]
But it failed since max
Coordinate {1.0178118484082224`, {$CellContext`x -> -0.0355786613147075}} should be a pair of numbers, or a Scaled or Offset form.



point = {x /. Last[#], First[#]} &@max;you're creating list, but the # &@max is what I don't understand.
– Onizuka Sep 22 '14 at 09:42#tox, take the first element of#}, where#is an argument and&ends a definition of a function.@works almost the same as [] so, for instance, Sin[x] is the same as Sin@x (but in general@has different evaluation order, take a look on its documentation). Try to read sth about slots (#), maybe it will clear things out for you. http://reference.wolfram.com/language/ref/Slot.html – Grzegorz Rut Sep 22 '14 at 09:56