calcMin function

Calculate the Minimum of a User-Defined Function