How to check if to equations are the same
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Peter Kempter
am 4 Jul. 2016
Kommentiert: Randolph Brockman
am 15 Sep. 2020
I'm looking for method to check if two symbolic equations are the same. e.g:
syms x1, x2, x3;
a = x1 == x2 + x3;
b = x1 - x2 == x3;
isequal(a, b)
isequal always returns false. Is there a method which can verify that the equations are the same?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 4 Jul. 2016
Use the Symbolic Math Toolbox isAlways funciton:
syms x1 x2 x3
a = x1 == x2 + x3;
b = x1 - x2 == x3;
Q = isAlways(a == b)
Q =
1
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Assumptions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!