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

 採用された回答

Steven Lord
Steven Lord 2017 年 8 月 18 日

1 投票

>> syms a b
>> X = (a+b)*(a-b);
>> Y = a^2-b^2;
>> isAlways(X == Y)
ans =
logical
1

その他の回答 (0 件)

カテゴリ

質問済み:

2017 年 8 月 18 日

回答済み:

2017 年 8 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by