Fmin and Fmax can point to function