function [res] = G(X,Y) % This function is used by Finite Element Method % (Algorithm 12.5) to implement G(x,y). res = 4;