Is the Lagrange formalism or the Hamiltonian more convenient for non-conservative systems