How do you make it so that the simplify function displays the correct answer?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
syms s
simplify((s+30)*(s^2-20*s+200))
^ This is the code that I have currently. Instead of simplifying the entire expression, Matlab is just returing the original expression back to me: (s + 30)*(s^2 - 20*s + 200). How can I change it so that the entire expression actually gets simplified?
0 Commenti
Risposte (2)
Steven Lord
il 8 Mag 2022
syms s
simplify((s+30)*(s^2-20*s+200))
expand((s+30)*(s^2-20*s+200))
0 Commenti
Walter Roberson
il 8 Mag 2022
(s^2 - 20*s + 200)
The roots of that are 10 +/- 10i . So that expression is already fully factorized to real coefficients, and what you got is already the simplest version, under quite reasonable meanings of "simplify".
0 Commenti
Vedere anche
Categorie
Scopri di più su Assumptions 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!