Calculations with Trigonometric Functions