if rem(i,3)==0
sum += 2*f(xi(i));
else sum+=3*f(xi(i));
end;
i++;
if rem(i,2)==0
sum += 2*f(xi(i));
else sum+=4*f(xi(i));
end;
i++;
end;
sum+=(2*f(xi(i)));
i++;
✈ Numerical Analysis using MATLAB 🚁 Perfect students engineers 🛥 and researchers looking to 🚕 solve complex mathematical 🚒 problems computationally 🪆root finding interpolation 🎮 integration ODEs linear systems 🎳 plots error analysis 🧵 algorithm breakdowns and 🪀 visualizations academic projects 🧸 simulations and real-world applications🔫
MIT
if rem(i,3)==0
sum += 2*f(xi(i));
else sum+=3*f(xi(i));
end;
i++;
if rem(i,2)==0
sum += 2*f(xi(i));
else sum+=4*f(xi(i));
end;
i++;
end;
sum+=(2*f(xi(i)));
i++;