SymPy solveset
and unevaluated expressions
This is running in Anaconda Python, in Sympy 1.0
Note, **
for power in pure Python
sympify
converts a string to an expression and evaluate=False
suppresses simplification
solveset
in action (like solve, but returns all solutions or a set of solutions)
roots
for polynomials shows the multiplicity
Below, 0
is not a solution
use root
to see that has multiplicity of 2 (only works for polynomial-like expressions)