y=cos(x+\pi/4)-1