Feat(Core): Change default str function for MO
This commit is contained in:
@@ -142,28 +142,8 @@ def mopolynomial_monumber(left, right):
|
||||
>>> a = MOnumber(2)
|
||||
>>> print(power(P, a))
|
||||
*
|
||||
> +
|
||||
| > *
|
||||
| | > 3
|
||||
| | > ^
|
||||
| | | > x
|
||||
| | | > 2
|
||||
| > +
|
||||
| | > *
|
||||
| | | > -2
|
||||
| | | > x
|
||||
| | > 1
|
||||
> +
|
||||
| > *
|
||||
| | > 3
|
||||
| | > ^
|
||||
| | | > x
|
||||
| | | > 2
|
||||
| > +
|
||||
| | > *
|
||||
| | | > -2
|
||||
| | | > x
|
||||
| | > 1
|
||||
> 3x^2 - 2x + 1
|
||||
> 3x^2 - 2x + 1
|
||||
"""
|
||||
return Tree.from_list("*", [left]*right.value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user