Q. If and then

 1472  307 Trigonometric Functions Report Error

Solution:

Since
Hence

and