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 CenterFile Exchange에서 Conversion 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