Filter löschen
Filter löschen

How can I rearrange equations to general form?

9 Ansichten (letzte 30 Tage)
Joona Luume
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
Matlab gives me answer (as it should)
But is there a command to rearrange the equation to either
Thank you for your help.

Akzeptierte Antwort

Dyuman Joshi
Dyuman Joshi am 29 Mär. 2023
Return all equivalent results with higher number of simplication steps
syms x y z
eqn1 = 
out = 

Weitere Antworten (1)

John D'Errico
John D'Errico am 29 Mär. 2023
syms x y z
eqn1 = 
Nothing stops you from doing it yourself. For example, I might do:
eqn1 = eqn1 + z
eqn1 = 
Or, you can even use isolate.
eqn1 = isolate(eqn1,x+y+z)
eqn1 = 
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...
  1 Kommentar
Joona Luume
Joona Luume am 29 Mär. 2023
Firstly, thank you for quick respond.
I understand your point, and my example is bad, but the equations that I need to compute have often more variables and are more complicated. So solving them by hand can be a quite tedious process.
Another example:
syms a b c d e
I know I can solve this manually by doing just like you suggested:
And it gives the answer I need but I was just wondering if there was a simple command to automate this process for me.
Big thanks to you bothering to answer my silly questions :), really appreciate the help!

Melden Sie sich an, um zu kommentieren.





Community Treasure Hunt

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

Start Hunting!

Translated by