gradient approximation function
Merge branch 'master' of https://github.com/deeperintomovies/867-problem-set-1