Verifing symbolic equality in MATLAB
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gennaro Arguzzi
le 18 Août 2017
Réponse apportée : Steven Lord
le 18 Août 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 commentaires
Réponse acceptée
Steven Lord
le 18 Août 2017
>> syms a b
>> X = (a+b)*(a-b);
>> Y = a^2-b^2;
>> isAlways(X == Y)
ans =
logical
1
0 commentaires
Plus de réponses (0)
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!