ConceptPythonBeginner Computer algebra: formulas as trees, exact until you ask for digits theta0 = sp.Symbol("theta0")M = sp.Matrix(n, n, lambda i, j: sp.Symbol(f"a{i}{j}"))v = sp.Symbol("v")
RecipePythonIntermediate Derive a Jacobian with SymPy and pass it to solve_ivp with lambdify t = sp.Symbol("t")e = sp.Symbol("e")electron = sp.Symbol("electron")