From 8ffdfbdcaf0f0e1018e39243fdd5fbe5b9a61bba Mon Sep 17 00:00:00 2001 From: Lafrite Date: Tue, 7 Apr 2015 08:55:05 +0200 Subject: [PATCH] lastbug with facto? --- pymath/abstract_polynom.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pymath/abstract_polynom.py b/pymath/abstract_polynom.py index f434983..9eb8894 100644 --- a/pymath/abstract_polynom.py +++ b/pymath/abstract_polynom.py @@ -65,6 +65,9 @@ class AbstractPolynom(Explicable): except IndexError: pass + if coefs == []: + coefs = [0] + self.feed_coef(coefs) self._letter = letter self.name = name