I'm a beginner with Matlab, and I'm trying to solve the following problem
f(x) = \int_{abs(x)}^{\infty} 10^-15 *(u+x)^24 *(u-x)^19 *exp(-(u+x)/0.4 - (u-x)/0.2) duh(x) = exp(-(x-3)^2)g = int_{-\infty}^{\infty} abs(f(x)-h(x))*f(x) dx. h = @(x) exp(-(x-3).^2)ff =10.^(-15).*(u+x).^24.*(u-x).^19.*exp(-(u+x)./(0.4)-(u-x)./(0.2))f = @(x) int(ff,[abs(x),Inf])g= int(abs(hV(x) - hN(x)).*hV(x), -inf, inf)
I tried int() with symbolic but it takes too long. I waited for so long but I didn't get the answer.
Anyone please helps me? Any help is really appreciated.
Best Answer