From 9a7f0da24e66f2e791fe19a94edf346468f2ed4a Mon Sep 17 00:00:00 2001 From: Lafrite Date: Sun, 8 Mar 2015 23:40:15 +0100 Subject: [PATCH] add ggive_name method to polynom --- pymath/polynom.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pymath/polynom.py b/pymath/polynom.py index 36e3f3d..13a17b6 100644 --- a/pymath/polynom.py +++ b/pymath/polynom.py @@ -175,6 +175,9 @@ class Polynom(Explicable): else: return 0 + def give_name(self, name): + self.name = name + def __str__(self): return str(Expression(self.postfix_tokens))