import work from sqrt on smpl for absPoly and this_append_before

This commit is contained in:
Benjamin Bertrand 2016-03-15 09:04:23 +03:00
parent 019b256d2f
commit 6ca6cff6e2
2 changed files with 3 additions and 1 deletions

View File

@ -385,6 +385,8 @@ class AbstractPolynom(Explicable):
def simplify(self):
"""Same as reduce """
if isNumber(self._letter):
return self.replace_letter(self._letter).simplify()
return self.reduce()
@classmethod

View File

@ -124,7 +124,7 @@ class Explicable(Renderable):
>>> print(e.steps)
['cook', 'eat', 'sleep']
"""
self.steps = steps + self.steps
self.steps = list(steps) + self.steps
def steal_history(self, arg1):
""" Steal the history of arg1 for itself