Equations involving sin, cos, or both