Code for applying control and learning algorithms to dynamical systems