Feat(compute): Multiply strpower and str done

Discover bug with str and * printing
This commit is contained in:
2018-10-10 10:28:38 +02:00
parent ddf15e4276
commit e6abc208a0
4 changed files with 104 additions and 1 deletions

View File

@@ -41,7 +41,16 @@ Generate and compute like a student!
(2 / 3)^4
2^4 / 3^4
16 / 81
>>> e = Expression.from_str("x^2*x*x^4")
>>> e_simplified = e.simplify()
>>> print(e_simplified)
x^7
>>> for s in e_simplified.explain():
... print(s)
x^2 * x * x^4
x^3 * x^4
x^(3 + 4)
x^7
"""
from .expression import Expression