Expressions involving sines and cosines