Trigonometric functions and their derivatives