Bug for command Max[Function f, Number a, Number b]
Problem description: The command Max[Function f, Number a, Number b] should give the maximum point for function f between a and b. It doesn't always do that, in fact it behaves strangely at times. See "steps to reproduce bug" below for an example.
OS: Windows 10 Education, version 1809, installed 2019-02-21, build 17763.737
Java version: 8 update 221 (build 1.8.0_221-b11)
Steps to reproduce bug (or open the attached file and go to step 5):
1) Make function f(x)=x^3-x^2
2) Make sliders a and b.
3) Enter command "A=max(f,a,b)".
4) Set a=0.2 and b=1.1.
5) Point A should be at (1.1, 0.121) but instead is found at (0.2, -0.03). When the slider a is set to a=0.3, point A jumps to the expected value.
Similar problem with command Min[Function f, Number a, Number b].