Finding minimum value of a function — Blankdot