Good day. It is necessary to implement a parser for mathematical expressions entered by the user into those that sympy understands. It's not about simplify (), you need to do the following transformations:

Заменить записать вида sin^2 x на sin(x)**2 |x| на Abs(x) 2x на 2*x x2 на x**2 x^2 на x**2 И т.д 

Now the question is: how can this be realized? Perhaps there are ready libraries or projects

    0