- #1

- 13

- 0

## Main Question or Discussion Point

I need to make to functions in java that gives the maxim and minin of the Parabola polynom ax2+bx+c for an interval of two given points.

I have no Idea how to make this algorithm , could you help ?

I have come to something like this :

I have no Idea how to make this algorithm , could you help ?

I have come to something like this :

if (-b/(2*a)>=x1 && -b/(2*a)<=x2)

return (-b/(2*a));