From 87ba07bee68ac752aec07388801a8e76cd7aa643 Mon Sep 17 00:00:00 2001 From: Le Date: Tue, 4 Jun 2024 10:50:07 -0700 Subject: [PATCH] Added implementations of arithmetic functions --- example.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example.py b/example.py index 7bcfc5b..7b824c7 100644 --- a/example.py +++ b/example.py @@ -17,23 +17,23 @@ def sum(self): """ Compute :math:`x + y`. """ - #return self.x + self.y + return self.x + self.y def difference(self): """ Compute :math:`x - y`. """ - #return self.y - self.x + return self.y - self.x def product(self): """ Compute :math:`x * y`. """ - #return self.x * self.y + return self.x * self.y def quotient(self): """ Compute :math:`x / y`. """ - #return self.x / self.y + return self.x / self.y