add ggive_name method to polynom

This commit is contained in:
Lafrite 2015-03-08 23:40:15 +01:00
parent 9ddb015a87
commit 9a7f0da24e

View File

@ -175,6 +175,9 @@ class Polynom(Explicable):
else: else:
return 0 return 0
def give_name(self, name):
self.name = name
def __str__(self): def __str__(self):
return str(Expression(self.postfix_tokens)) return str(Expression(self.postfix_tokens))