필터 지우기
필터 지우기

Solving for x given F(x) for nonlinear polynomial function

조회 수: 2 (최근 30일)
Sara
Sara 2011년 7월 11일
Hello my name is Sara I have a polynomial function that looks like this:
kp = {(1-b)^3/b^2}*{20/5-b}
I have the value for kp but I need to solve for b.
How can I do this in matlab.
Please help
Thank you

답변 (1개)

Walter Roberson
Walter Roberson 2011년 7월 11일
b = roots([1, -7, 15-kp, -13, 4])
  댓글 수: 3
Walter Roberson
Walter Roberson 2011년 7월 12일
kp = (1-b)^3/b^2*(4-b)
Multiply both sides by b^2 (assuming b is non-zero)
kp * b^2 = (1-b)^3*(4-b)
Expand the right hand side
kp * b^2 = 4-13*b+15*b^2-7*b^3+b^4
move the left side to the right to get
0 = 4-13*b+(-kp+15)*b^2-7*b^3+b^4
Reorder by descending powers of b, take the coefficients and write the roots() expression.
bym
bym 2011년 7월 13일
doh! :(

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

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by