我试图通过使用双重金额的概念,从数字上说是双重的。 履行我试图整合的职能已超出x,而且能够做到以下几点:
result=0;
for i=1:0.1:x
for j=1:0.1:y
fun(i,j)= x(i).*y(j)*0.1^2; %the function I want to integrate times the increment
result = result + fun(i,j);
end
end
Also does anyone know what would the best increment be to best approximate the integral? I appreciate any advice !