Waveformer for modelling dynamical systems