When you set Dw equal to D the integrals in y2 are easy to solve analytically (by hand). You get a result which is a factor of 2 different from y1, which is what the numerical results are telling you. Where you have pi/64 you should probably have pi/128
Alan