Azzera filtri
Azzera filtri

Verifing symbolic equality in MATLAB

2 visualizzazioni (ultimi 30 giorni)
Hello everyone. How can I verify a symbolic equality? For example:
(a+b)*(a-b)=a^2-b^2
Thank you for your help.

Risposta accettata

Steven Lord
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

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by