Verifing symbolic equality in MATLAB
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Gennaro Arguzzi
il 18 Ago 2017
Risposto: Steven Lord
il 18 Ago 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 Commenti
Risposta accettata
Steven Lord
il 18 Ago 2017
>> syms a b
>> X = (a+b)*(a-b);
>> Y = a^2-b^2;
>> isAlways(X == Y)
ans =
logical
1
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Assumptions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!