Created Exp in operator_file.py to represent Power

Implemented Expand and regroup
This commit is contained in:
Clément Barthélemy 2024-02-20 21:21:55 +01:00
parent fa1f19f5cc
commit 8ee24d763b
8 changed files with 335 additions and 58 deletions

View file

@ -4,7 +4,6 @@ from python_symb.MathTypes.operator_file import BinOperator, UnaryOperator
from python_symb.MathTypes.symbols import Symbols, Var
from python_symb.MathTypes.fraction import Fraction
x, y = Var('x'), Var('y')
ParenthesisLeft = Symbols('(')
ParenthesisRight = Symbols(')')
@ -103,7 +102,7 @@ def infix_str_to_postfix(expr):
if __name__ == "__main__":
x, y = Var('x'), Var('y')
expr = "(x+7)*y+sin(24-2*(1-5))"
prep = preprocess(expr)
print(prep)