updated based on suggestions

doctest passed on sympy\solvers\ode.py