An undulator consists of a periodic array of magnets .
They provide a sinusoidal magnetic field .
An undulator consists of a periodic array of magnets , so that they provide a sinusoidal magnetic field .