Subperiodic trigonometric interpolation and quadrature