Hamiltonian character of the motion of the zeros of a polynomial whose coefficients oscillate over time