syms x y z;f1=@(x)(0.6*dirac(x-0.01)+0.4*(x-100));f2=@(y)(0.6*dirac(y-0.01)+0.4(y-100));intfn=matlabFunction((1-(1/(1+(2.87*10^(-5)*z/(x*y)))))*z);innerintegral=@(x,y)(int(intfn,z,0,inf)*-6.3*10^(-3));mainfun=@(x,y)innerintegral(x,y)*0.4*exp(-5*10^(-10)/(x*y))*f1(x)*f2(y);%this is the main function to be integrated which utilizes f1, f2 and innerintegral above
resultintermediate=int(mainfun,x,0.01,inf);result=int(resultintermediate,y,0.01,inf);double(result)
MATLAB: The following program involving double integration hangs…Tried everything in R2014a
MATLABmultiple integrals
Best Answer