Similarities Between Dynamics at Atomic and Cosmological Scales