Don't proceed during integration

I wrote following code to calculate complex integration but it don't give any answer nor any error i.e. do not proceed what should I do?
syms w e
Hw=((exp(1i.*w)+2)./(exp(1i.*2.*w)+exp(1i.*w)+2));
Dw=((1-e)./(1-e.*exp(-1i.*w)));
Dw1=((1-e)./(1-e.*exp(1i.*w)));
Sww=1./((1-0.5.*exp(-1i.*w)).*(1-0.5.*exp(1i.*w)));
B=Hw./(1-Dw.*Hw);
C=Dw./(1-Dw.*Hw);
X=(Dw.*Hw)./(1-Dw);
AB=abs(B);
AC=abs(C);
AX=abs(X);
F1=Dw1.*(Dw-1).*(AB.^2).*Sww;
F2=(1-Hw).*(AC.^2);
del1=(1./(pi.*(1-e))).*(int(F1,w,-pi,pi));
del2=(1./(pi.*(1-e))).*(int(F2,w,-pi,pi));
del=del1./(1-del2);
Syy=((AB.^2).*Sww)+((AX.^2).*del)

3 Comments

When I use Maple it leaves the two integrals unevaluated, indicating that finding a closed-form solution for the integrals is beyond its capabilities. MuPAD probably cannot find the integrals either.
Note: when you are working with symbolic values, especially in combination with complex values, then using "e" as a variable name gets quite confusing with the use of "e" as the base of the natural logarithms. It is recommended to use a different variable name to reduce confusion.
When I replace the variable "e" to "x" then also it does not proceed further to give any result. What should I do?
What you do is give up on trying to obtain a closed-form symbolic solution. For any given numeric x you can do numeric integration.

Answers (0)

This question is closed.

Asked:

on 19 Jun 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!