Functions, Statistics, and Trigonometry