Q. If and then

 1474  307 Trigonometric Functions Report Error

Solution:

Since
Hence

and