Periodic and quasi-periodic flows and diffeomorphisms Smooth dynamical systems mathematics