Duplicate of Mjnimal and maximal value of a function. thread closed.