RecipePythonAdvanced Compute Christoffel symbols and the curvature of a metric with SymPy print(f"operations in K: {sp.count_ops(K_late)} unsimplified, {sp.count_ops(K)} simplified")
ToolPythonIntermediate Hückel theory with SymPy: exact orbital energies of butadiene and benzene print(max(A7.eigenvals(), key=lambda l: sp.count_ops(l)))