From a9920f49db2d95441fa4485dbb93fa7fab4cf676 Mon Sep 17 00:00:00 2001 From: Armaan Hussain <32784782+Armaanisnotonfire@users.noreply.github.com> Date: Mon, 1 Oct 2018 21:21:51 -0700 Subject: [PATCH] Update mathsClass.py --- mathsClass.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mathsClass.py b/mathsClass.py index b83b54c..1d1b3a0 100644 --- a/mathsClass.py +++ b/mathsClass.py @@ -3,6 +3,7 @@ for i in [("\n".join(c)) for c in [[i for i in p.__doc__.split("\n")] for p in defined_class]]: print(i.encode('utf-8').decode('unicode-escape')) ''' + """ MATRIX CLASS""" class Matrix(): ''' @@ -117,6 +118,7 @@ def funcMatrix(dim, func): return Matrix([[func(i,j) for j in range(dim[1])] for i in range(dim[0])]) + """ COMPLEX CLASS """ class Complex(): ''' @@ -164,6 +166,7 @@ def __mul__(self, other): def __truediv__(self, other): return Complex((-other*self).real()/(-other*other).real(),(-other*self).imag()/(-other*other).real()) + """ RATIONAL CLASS""" class Ratio(): '''