I was wondering if both statements below mean the same or have any difference in functionality. This is for the calculation of gradient of cost function.

```
dAL = -1 * (np.divide(Y,AL) - np.divide((1-Y),(1-AL)))
dAL = -1 * ((Y/AL) - ((1-Y)/(1-AL)))
```

Both seem to give me correct answers but I just wanted to know if any difference. I understand the difference between np.dot and *, as well as + and np.sum. I understand how we get different answers.

I also am unsure if np.multiply and * give us the same result. Could anyone please give me feedback? Thank you.

Regards,

Deepak.