how to check if two symbolic fractions are the same?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Torsten
2023-7-27
syms x y z
fraction1 = (x+y)/(x*y) + z;
fraction2 = (x+y+x*y*z)/(x*y);
isAlways(fraction1==fraction2)
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!