Functional Trigonometry