MATLAB: Soving integral in MATLAB!! integral Let a=0.95, b=0.05 Is there any way to solve the following definite integral from 0 to inf? exp(-x./(a-b.*x)) Either closed form or numerical integration or numerical approximation Thanks in advance Best Answer exp(-x/(a-bx)) for a=0.95 and b=0.05 does not converge to 0 as x -> Inf, but to exp(20). Thus the integral from 0 to Inf cannot exist.Best wishesTorsten. Related SolutionsMATLAB: Soving polynomial equation with negative powers If the last term is Z * x^(-P), then multiply the equation by x^P, transforming it intoa*x^(P-1) + b*x^(P-2) + c*x^(P-3) + .... Z = 0then you can use roots()If you think about this for a second, you can see that you can skip the roots() step if your coefficients are arranged in the right order. MATLAB: Solving integral equations by integral When using integral(), you don't need to use sym. Also exp is defined as a function in MATLAB, not a constant. Compare your code with the following code to find the mistakesa=1.5;b=0.5;fun = @(x) (x-b).^2.*exp(-x);value=integral(fun,0,a) Related Question
Best Answer