Skip to content
Snippets Groups Projects
Commit 50b87c3f authored by Maxxhim's avatar Maxxhim
Browse files

patch v1.1 Division

parent 8c99c113
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ class Div(_Function): ...@@ -118,7 +118,7 @@ class Div(_Function):
# result of the chain rule on self.dx. # result of the chain rule on self.dx.
####################################################################### #######################################################################
self.dx = grad * (1/self.y.data) self.dx = grad * (1/self.y.data)
self.dy = grad * ((-1/(self.y.data)^2) * self.x.data) self.dy = grad * ((-1/(self.y.data)**2) * self.x.data)
####################################################################### #######################################################################
# --------------------------- END OF YOUR CODE ------------------------ # --------------------------- END OF YOUR CODE ------------------------
####################################################################### #######################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment