ConceptPythonBeginner Computer algebra: formulas as trees, exact until you ask for digits print(f"x**20 - 1 factored: {len(sp.factor_list(x**20 - 1)[1])} factors, {sp.factor(x**20 - 1)}")
ToolPythonIntermediate Hückel theory with SymPy: exact orbital energies of butadiene and benzene cubic = [f for f, m in sp.factor_list(p7)[1] if sp.degree(f, lam) == 3][0]