SMS dit: Trigonometric sums in number theory and analysis