Equilibrium propagation for learning in Lagrangian dynamical systems | Synapse