plz help me ....
how can I solve this problem by using residue by matlab :
25cos(πz)/((2z+1)^2 (z-2)^2 )
plz help me .. thank u .

답변 (2개)

Star Strider
Star Strider 2015년 3월 24일

0 개 추천

If you have the Symbolic Math Toolbox, use the partfrac funciton:
syms z
f = 25*cos(pi*z)/((2*z+1)^2 * (z-2)^2 );
pf = partfrac(f, z)
produces:
pf =
cos(pi*z)/(z - 2)^2 - (4*cos(pi*z))/(5*(z - 2)) + (8*cos(pi*z))/(5*(2*z + 1)) + (4*cos(pi*z))/(2*z + 1)^2

댓글 수: 4

adrian zizo
adrian zizo 2015년 3월 24일
thank u ...but I want the value of residue at (z=2 and z=-0.5) how can I find it?
Star Strider
Star Strider 2015년 3월 24일
The ‘pf’ expression provides you with the partial fraction evaluated at exactly those values. If you substitute them in for ‘z’ in that expression, you will get an infinite result for each, as expected.
adrian zizo
adrian zizo 2015년 3월 24일
but when I enter : syms z
f = 25*cos(pi*z)/((2*z+1)^2 * (z-2)^2 );
pf = partfrac(f, z)
in matlab , matlab give me error ...my matlab version is R2010a
Star Strider
Star Strider 2015년 3월 24일
According to the online documentation, partfrac was introduced in R2015a, so you wouldn’t have it in R2010a.
I posted the result as ‘pf’ in my Answer, so you have the result of the partfrac operation without having to have the function in your version.

댓글을 달려면 로그인하십시오.

Konstantinos Sofos
Konstantinos Sofos 2015년 3월 24일

0 개 추천

I would suggest to use L'Hôpital's rule but you could use also the following Adaptive numerical limit (and residue) estimation

댓글 수: 2

adrian zizo
adrian zizo 2015년 3월 24일
I want residue of complex numbers .. plz help me
Konstantinos Sofos
Konstantinos Sofos 2015년 3월 24일
편집: Konstantinos Sofos 2015년 3월 24일
Have a look in the link that i attached you before...
for your given example
f = @(z) 25*cos(pi*z)./((2*z+1).^2 .* (z-2).^2 )

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

질문:

2015년 3월 24일

댓글:

2015년 3월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by