Check gradient regularization exercise

Hi. I was trying to solve ex3 of w1. For backward propagation it says me that is wrong but I don’t know what is wrong. This is what I have written:

{moderator edit - solution code removed}

@paulinpaloalto can you please tell me what is wrong?

Thank you

It looks like an “order of operations” problem. Try the following and watch what happens:

m = 5.
x = 1. / 2. * m
y = 1. / (2. * m)

If you are expecting x and y to have the same value, you’re in for a surprise.