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

 Respuesta aceptada

KSSV
KSSV el 2 de Nov. de 2023
syms x a
eqn = x^4+5*a*x^2+6*a==0 ;
s = solve(eqn,x)
s = 

4 comentarios

I try the same thing for following equation but it does not work.
syms x a
eqn = x^3+5*a*x^2-6*a*a*x+a^3==0 ;
s = solve(eqn,x)
Where is the problem?
Dyuman Joshi
Dyuman Joshi el 2 de Nov. de 2023
What do you mean by "does not work"?
Cem Eren Aslan
Cem Eren Aslan el 2 de Nov. de 2023
I get these results.
syms x a
eqn = x^3+5*a*x^2-6*a*a*x+a^3==0 ;
s = solve(eqn,x,'MaxDegree',3)
s = 

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 2 de Nov. de 2023

Comentada:

el 2 de Nov. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by