From 50b87c3fa35b22c19f1e71df74f5441b5da1a1b3 Mon Sep 17 00:00:00 2001 From: Maxxhim <maxc2507@gmail.com> Date: Fri, 3 Apr 2020 11:17:42 +0200 Subject: [PATCH] patch v1.1 Division --- functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.py b/functions.py index ce92027..68b25d9 100644 --- a/functions.py +++ b/functions.py @@ -118,7 +118,7 @@ class Div(_Function): # result of the chain rule on self.dx. ####################################################################### 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 ------------------------ ####################################################################### -- GitLab