diff --git a/pymath/calculus/abstract_polynom.py b/pymath/calculus/abstract_polynom.py index a582985..020836f 100644 --- a/pymath/calculus/abstract_polynom.py +++ b/pymath/calculus/abstract_polynom.py @@ -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 diff --git a/pymath/calculus/explicable.py b/pymath/calculus/explicable.py index 006f4a3..6b21569 100644 --- a/pymath/calculus/explicable.py +++ b/pymath/calculus/explicable.py @@ -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