Added TikZ example using trigonometric function