Added trigonometry function.