plot y = cos(x), y = cos(2x), y = cos(0.5x) for x from 0 to 4pi