how to check if two symbolic fractions are the same?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ali Almakhmari
am 27 Jul. 2023
Beantwortet: the cyclist
am 27 Jul. 2023
I have two fractions that have so many symbolic variables and are too complicated, but are in different forms. How can I check if they are equal to each other? For example:
syms x y z
fraction1 = (x+y)/(x*y) + z;
fraction2 = (x+y+x*y*z)/(x*y);
How can I check if fraction1 and fraction2 are the same?
0 Kommentare
Akzeptierte Antwort
Torsten
am 27 Jul. 2023
syms x y z
fraction1 = (x+y)/(x*y) + z;
fraction2 = (x+y+x*y*z)/(x*y);
isAlways(fraction1==fraction2)
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox 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!