How can I rearrange equations to general form?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Joona Luume
am 29 Mär. 2023
Kommentiert: Joona Luume
am 29 Mär. 2023
I have simplifyed example of my problem:
syms x y z
eqn1=x+y+5==-z
Matlab gives me answer (as it should)
eqn1=x+y+5==-z
But is there a command to rearrange the equation to either
eqn1=x+y+z+5=0
or
eqn1=x+y+z=-5
Thank you for your help.
0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 29 Mär. 2023
Return all equivalent results with higher number of simplication steps
syms x y z
eqn1=x+y+5==-z
out=simplify(eqn1,'All',true,'Steps',4)
Weitere Antworten (1)
John D'Errico
am 29 Mär. 2023
syms x y z
eqn1=x+y+5==-z
Nothing stops you from doing it yourself. For example, I might do:
eqn1 = eqn1 + z
Or, you can even use isolate.
eqn1 = isolate(eqn1,x+y+z)
Personally, I never understand these questions, though we see them often. :) All that has changed is where a term falls. It is still the same equation. A rose by any other name...
Siehe auch
Kategorien
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!