Fix(MO): Redefine strpower method of MOMonomial for deg 1 case

This commit is contained in:
Bertrand Benjamin 2018-11-19 12:21:59 +01:00
parent 1be3b35e1b
commit 6edf4fe5b4

View File

@ -139,6 +139,8 @@ class MOMonomial(MO):
@property @property
def strpower(self): def strpower(self):
if self._power == 1:
return self.variable
return MOstrPower(self._variable, self._power) return MOstrPower(self._variable, self._power)
@property @property