Hamiltonian and gradient flows, algorithms and control (American Math. Soc., 1994)