Computation, dynamics, and cognition