Finding the roots for an equation

5 次查看(过去 30 天)
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 个评论
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 CenterFile Exchange 中查找有关 Systems of Nonlinear Equations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by