y = cos(x) and y=cos(x/2) from 0 to 4pi