inner_intgrl_1 =
Hi jagannath,
In the original code, lmf and umf are function handles (having nothing to do with the sym variable x), and function handles can't be concatenated into an ordinary array. Also, in the call to int the upper and lower bounds are separate, not in an array.
syms x u
lmf = exp(-x.^2);
umf = exp(-(x-5).^2);
h = exp(-u.^2);
inner_intgrl_1 = int(u*h,u,lmf,umf) % specify the variable of integration
inner_intgrl_2 = int(h,u,lmf,umf)
inner_intgrl_3 = inner_intgrl_1./inner_intgrl_2
%outer_intgrl_1 = integral(x.*inner_intgrl_3,x,[0 10]);
outer_intgrl_1 = int(x*inner_intgrl_3,x,0,10)
outer_intgrl_2 = int(inner_intgrl_3,x,0,10)
c_jb = outer_intgrl_1/outer_intgrl_2
Since a closed form solution isn't found:
vpa(c_jb)





