Text this: Trigonometric sums in number theory and analysis