Check user's routine for calculating first derivatives of function
CALL E04HCF(N,FUNCT,X,F,G,IUSER,LIW,RUSER,LW,IFAIL)