Can this equation be solved for x? If yes, how does the solution look? Thank you. Karl.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
a*x^4-b*x^2-c*x+d=0
0 Commenti
Risposta accettata
Askic V
il 30 Mag 2023
Modificato: Askic V
il 30 Mag 2023
Things become complicated very easy with high degree polynomials.
First, this is an example for qudratic equation:
syms a b c x
% Define the equation
eqn = a*x^2 + b*x + c == 0;
% Solve the equation symbolically
sol = solve(eqn, x);
pretty(sol)
and this is for 4th order:
syms a b c d x
% Define the equation
eqn = a*x^4-b*x^2-c*x+d == 0;
% Solve the equation symbolically
% The option specifies the max degree
% of polynomials for which the solver tries to find and return
% an explicit solutions
sol = solve(eqn, x,'MaxDegree',4);
pretty(sol(1)) % only first solution
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!