Verifing symbolic equality in MATLAB
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Gennaro Arguzzi
am 18 Aug. 2017
Beantwortet: Steven Lord
am 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 Kommentare
Akzeptierte Antwort
Steven Lord
am 18 Aug. 2017
>> syms a b
>> X = (a+b)*(a-b);
>> Y = a^2-b^2;
>> isAlways(X == Y)
ans =
logical
1
0 Kommentare
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!