Feat(core): add power attribut to MOPolynomial
This commit is contained in:
@@ -85,6 +85,10 @@ class MOpolynomial(MO):
|
|||||||
"""
|
"""
|
||||||
return max(self._coefs.keys())
|
return max(self._coefs.keys())
|
||||||
|
|
||||||
|
@property
|
||||||
|
def power(self):
|
||||||
|
return self.degree
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def coefficients(self):
|
def coefficients(self):
|
||||||
return self._coefs
|
return self._coefs
|
||||||
|
|||||||
Reference in New Issue
Block a user