function [ A2,A3,A4,A5 ] = lag2345_Garima( fx)
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here


A3=0;
A4 = 0;
A5 =0;

%For 2 points

y1= [0.585786437627 ,3.414213562373];
    

w1 = [1.53332603312,4.45095733505];





fxy = fx(y1);

A2 =0;
for i=1:2
    A2 = A2+ w1(i)*fxy(i);
      
end

%3 points

y3= [.415774556783,2.294280360279, 6.289945082937];

w3 = [1.07769285927, 2.76214296190, 5.60109462543];

fxy = fx(y3);

A3 =0;
for i=1:3
    A3 = A3+ w3(i)*fxy(i);
      
end

%4 points

y4= [.322547689619, 1.745761101158, 4.536620296921, 9.395070912301];

w4 = [0.832739123838, 2.04810243845, 3.63114630582, 6.48714508441];

fxy = fx(y4);

A4 =0;
for i=1:4
    A4 = A4+ w4(i)*fxy(i);
      
end


%5 points

y5= [0.263560319718, 1.413403059107, 3.596425771041, 7.085810005859, 12.640800844276];

w5 = [0.679094042208, 1.63848787360, 2.76944324237, 4.31565690092, 7.21918635435];

fxy = fx(y5);

A5 =0;
for i=1:5
    
    A5 = A5+ w5(i)*fxy(i);
      
end