Gradient_Checking Exercise 3 - Difference = 0.33333333307383683

Hi guys,
My code runs alright but the difference I am receiving is to large. I just can’t seem to figure out what I am doing wrong. Code below

{moderator edit - solution code removed}

The code you implemented does not do what the formulas in the instructions show. I suggest you compare them again more carefully. In particular check your expression for gradapprox.