how can I use partfrac command?

조회 수: 13 (최근 30일)
Mohammad
Mohammad 2013년 2월 13일
댓글: Carlos Guerrero García 2022년 12월 2일
Hi
i want to find the partial fraction expansion for the function
f(x) = (8x^2+37x+32)/((x+1)(x+2)(x+4))
I want to find it using partfrac command
when I try partfrac((8*(x^2) + 37*x + 32) / ((x + 1) * (x+2) * (x+4)))
I get an error: Undefined function or variable 'x'.
How can I do it?

채택된 답변

Walter Roberson
Walter Roberson 2013년 2월 13일
syms x
partfrac((8*(x^2) + 37*x + 32) / ((x + 1) * (x+2) * (x+4)))
  댓글 수: 5
Hariharan 2015
Hariharan 2015 2017년 10월 19일
Not able to find Partfracs for this function. transfer =
2 s + 20
----------------------------------
s^5 + 3 s^4 + 6 s^3 + 12 s^2 + 8 s
Please help.
Carlos Guerrero García
Carlos Guerrero García 2022년 12월 2일
Hariharan....I suggest the following code:
syms s;
laplace(ilaplace((2*s+20)/(s^5+3*s^4+6*s^3+12*s^2+8*s)))
ans = 

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

추가 답변 (1개)

Carlos Guerrero García
Carlos Guerrero García 2022년 12월 2일
I suggest the following code:
syms s;
laplace(ilaplace((8*s^2+37*s+32)/((s+1)*(s+2)*(s+4))))
ans = 

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by