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
1 changed files with 2 additions and 0 deletions

View File

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