Solve long algebraic equations

2 次查看(过去 30 天)
Leon
Leon 2012-4-30
Can matlab give answer to a long algebraic equation? if yes, how?
Thanks!

回答(1 个)

Walter Roberson
Walter Roberson 2012-4-30
If you have the Symbolic Toolbox, you can try to use solve().
All versions of the Symbolic Toolbox have been able to solve quadratic equations (as far as I know.) In the MATLAB versions new enough to use the MuPAD symbolic engine (about R2008b on) up to about R2010a, a sufficiently complicated cubic or quartic might not have its solution found. R2010b onwards appears to do better on root finding. As per usual, any degree past 4 could be irreducible.
If you are trying to solve transcendental equations (e.g., logs, trig) then the majority of the time there simply is no analytic solution known to mathematics, but solve() will try

Community Treasure Hunt

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

Start Hunting!

Translated by