Finding the missing value in a trigonometric equation