I am using Matlab to calculate a double integral. The error is:
Warning: Explicit integral could not be found. Error using mupadmex Error in MuPAD command: DOUBLE cannot convert the input expression into a double array. If the input expression contains a symbolic variable, use the VPA function instead. Error in sym/double (line 827) Xstr = mupadmex('symobj::double', S.s, 0); Error in MeEqu7 (line 20) out2 =out2 (int(int(yi,u1,0,u2),u2, 0 ,1000))
and my code is as follows:
clear all; a=4; la1=1/(pi*500^2); la2= la1*5; p1=25; p2=p1/25; sgma2=10^(-11); index=1; g=2./a; syms r u1 u2 u3 aa powe= 0; seta= 10^powe; xNor = (u2./u1).^(-1./g) + 1 ; aa= -u2.^(-1./g) .*seta.*( pi.*(la1.*p1.^(g) + la2.*p2.^(g)) ).^(1./g) ; yi = exp(aa./xNor - u2 ); out2 = double (int(int(yi,u1,0,u2),u2, 0 ,1000))
Thanks alot for your help!! I also tried vpa. but the out2 is not a number. Actually, I am expecting the out2 is a number, sothat I can use this number to plot a figure. I did some search here. but their case is not helpful for my case. Could you take a deeper look?
Best Answer