how to check if two symbolic fractions are the same?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ali Almakhmari
le 27 Juil 2023
Réponse apportée : the cyclist
le 27 Juil 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 commentaires
Réponse acceptée
Torsten
le 27 Juil 2023
syms x y z
fraction1 = (x+y)/(x*y) + z;
fraction2 = (x+y+x*y*z)/(x*y);
isAlways(fraction1==fraction2)
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Assumptions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!