Interpolation, differentiation and solution of eigenvalue problems for periodic functions