I have a uniform grid (x,y) and I need help to generate a loop to compute (x-2h,y), (x-h,y),(x+h,y),(x+2h,y) for every point of x, and the same thing for every point of y , (x,y-2h),(x,y-h), (x,y+h), (x,y+2h).
x = {-0.5`, -0.5`, -0.5`, -0.5`, -0.28700000000000003`, -0.28700000000000003`, -0.28700000000000003`, -0.28700000000000003`, -0.07400000000000001`, -0.07400000000000001`, -0.07400000000000001`, -0.07400000000000001`, 0.139`, 0.139`, 0.139`, 0.139`, 0.352`, 0.352`, 0.352`, 0.352`, 0.565`, 0.565`, 0.565`, 0.565`}; y = {0.001`, 0.214`, 0.427`, 0.64`, 0.001`, 0.214`, 0.427`, 0.64`, 0.001`, 0.214`, 0.427`, 0.64`, 0.001`, 0.214`, 0.427`, 0.64`, 0.001`, 0.214`, 0.427`, 0.64`, 0.001`, 0.214`, 0.427`, 0.64`}; where h = 0.213;
Thanks.