Neural networks and dynamical systems