Corrected sympy bug affecting a sign in trajectory evolution