Gradient Checking for n dimensions

The code is provided: you just need to know where to look for it. There is a topic about that on the FAQ Thread.

Also note that you posted this in “General Discussion”. I moved it for you to DLS Course 2.