Hamiltonian Systems with a Functional Parameter in the Form of a Potential