Verifing symbolic equality in MATLAB
1 view (last 30 days)
Show older comments
Gennaro Arguzzi
on 18 Aug 2017
Answered: Steven Lord
on 18 Aug 2017
Hello everyone. How can I verify a symbolic equality? For example:
(a+b)*(a-b)=a^2-b^2
Thank you for your help.
0 Comments
Accepted Answer
Steven Lord
on 18 Aug 2017
>> syms a b
>> X = (a+b)*(a-b);
>> Y = a^2-b^2;
>> isAlways(X == Y)
ans =
logical
1
0 Comments
More Answers (0)
See Also
Categories
Find more on Assumptions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!