Equations involving sine, cosecant, and cotangent functions