George
George

Reputation: 81

How to perform this complex integration?

Hi all I hope I can find help here. My question is regarding integral in MATLAB. Please don't be scared by the complicated notation. They are almost all constants. I have the following function to integrate

syms v
syms gamma2
syms s
lambdav= (14679452516410005*exp(-(3*5^(1/2)*v^(1/4))/25))/(9223372036854775808*v^(1/2))    + (7339726258205003*exp(-(2*v^(1/4))/5))/(4611686018427387904*v^(1/2));
fun2=lambdav* (1./(1+s.*v^(-1)));
B=int(fun2,v,gamma2,+inf);

I would like the answer to be only in terms of gamma2 and s. The problem is MATLAB doesnt perform the integration and I get the following

int(((14679452516410005*exp(-(3*5^(1/2)*v^(1/4))/25))/(9223372036854775808*v^(1/2)) + (7339726258205003*exp(-(2*v^(1/4))/5))/(4611686018427387904*v^(1/2)))/(s/v + 1), v, gamma2, Inf)

which is basically the function I wrote.

Can anyone help me perform the integration?

Upvotes: 0

Views: 328

Answers (2)

Luca
Luca

Reputation: 558

Do you really need to integrate analytically? Otherwise, use numerical integration:

q = integral(fun,xmin,xmax)

where fun is a handle to your function and xmin and xmax are the border values of your definite integral.

Upvotes: 0

Kostya
Kostya

Reputation: 1572

If int cannot compute a closed form of an integral, it returns an unresolved integral http://www.mathworks.nl/help/symbolic/int.html

Upvotes: 1

Related Questions