Folding integer multiples of pi in trig functions.