Looks like you're guessing here (or did you try h = 0, in which case you might try using h = 0.0001 instead).