No because eps is not in the graph the derivative will always be none. I do not know a way to get around this. You could try looking at these 20 functions to see if you can use them to calculate the correct gradients but I cannot find a why to add eps to the graph.