Evaluation of trigonometric function