2 % evaluate minus Laplacian y= -x_11 - x_22 - x_33 on rectangular uniform grid
3 % assuming boundary values of x zero wrapped around
8 xx(2:n(1)+1,2:n(2)+1,2:n(3)+1)=x;
12 y=(2*xx(mid1,mid2,mid3)-xx(mid1-1,mid2,mid3)-xx(mid1+1,mid2,mid3))/(h(1)*h(1))...
13 +(2*xx(mid1,mid2,mid3)-xx(mid1,mid2-1,mid3)-xx(mid1,mid2+1,mid3))/(h(2)*h(2))...
14 +(2*xx(mid1,mid2,mid3)-xx(mid1,mid2,mid3-1)-xx(mid1,mid2,mid3+1))/(h(3)*h(3));