Finding the roots for an equation

16 ビュー (過去 30 日間)
Cem Eren Aslan
Cem Eren Aslan 2023 年 11 月 2 日
コメント済み: Torsten 2023 年 11 月 2 日
Hi everyone,
I try to solve an equation. Coefficient of this equations depends another variable like 'a' and i want to find the roots depend on 'a'. For example, i have an equation like "x^4+5*a*x^2+6*a=0" and i want to find the roots like x1=0.122a etc. How can i do that?
Thanks
Cem

採用された回答

KSSV
KSSV 2023 年 11 月 2 日
syms x a
eqn = x^4+5*a*x^2+6*a==0 ;
s = solve(eqn,x)
s = 
  4 件のコメント
Cem Eren Aslan
Cem Eren Aslan 2023 年 11 月 2 日
I get these results.
Torsten
Torsten 2023 年 11 月 2 日
syms x a
eqn = x^3+5*a*x^2-6*a*a*x+a^3==0 ;
s = solve(eqn,x,'MaxDegree',3)
s = 

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by