Period length of trigonometric functions