Solving for Trigonometric Values