フィルターのクリア

Solution of symbolic fourth order polynomial equation

21 ビュー (過去 30 日間)
Susmita Panda
Susmita Panda 2021 年 11 月 13 日
回答済み: Walter Roberson 2023 年 10 月 19 日
I am finding difficulty in finding roots of a fourth order polynomial equation which as as follows:
lambda^4+A*lambda^2-B*lambda+C=0
where A, B, and C are constants. I used function roots() function in matlab, but it doesnt worked.

採用された回答

VBBV
VBBV 2021 年 11 月 13 日
編集済み: VBBV 2021 年 11 月 13 日
A = 2;
B = 1.4;
C = 3
C = 3
syms L
eqn = L^4 + A*L^2 - B*L + C == 0
eqn = 
sol = double(vpasolve(eqn,2))
sol =
-0.6390 + 1.3986i -0.6390 - 1.3986i 0.6390 + 0.9277i 0.6390 - 0.9277i
Try using vpasolve

その他の回答 (2 件)

hiluf
hiluf 2023 年 10 月 19 日
a=-32;
b=4;
c=-8;
d=4;
syms L
egn=L*exp(4)+L*exp(2)+L*c+d==0;
sol = double(vpasolve(eqn,2));

Walter Roberson
Walter Roberson 2023 年 10 月 19 日
You can get the complete symbolic solution... or a placeholder form that in practice is much more convenient.
syms lambda A B C
eqn = lambda^4+A*lambda^2-B*lambda+C == 0
eqn = 
sol_root = solve(eqn)
sol_root = 
sol_full = solve(eqn, 'maxdegree', 4)
sol_full = 

カテゴリ

Help Center および File ExchangeConversion Between Symbolic and Numeric についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by