add ggive_name method to polynom

This commit is contained in:
Lafrite 2015-03-08 23:40:15 +01:00
parent 9ddb015a87
commit 9a7f0da24e
1 changed files with 3 additions and 0 deletions

View File

@ -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))