Functions, Statistics and Trigonometry