How to use isAlways to compare two symbolic equations ?

조회 수: 4 (최근 30일)
CN.
CN. 2021년 5월 31일
댓글: Torsten 2021년 5월 31일
Dear forum members,
I would like to check wether or not two symbolic equations are the same, but I am not able to do this using isAlways function.
syms a b
f1 = y == abs(x);
f2 = y == sqrt(x^2);
isAlways(f1 == f2)
Warning: Unable to prove '(y == abs(x)) == (y == (x^2)^(1/2))'.
> In symengine
In sym/isAlways (line 42)
ans =
logical
0
Why do I get these warnings and this (false) answer "logical 0" ? What am I doing wrong ?
Thank you for your help.

답변 (1개)

Torsten
Torsten 2021년 5월 31일
syms x
isAlways(sqrt(x^2)==abs(x))
  댓글 수: 2
CN.
CN. 2021년 5월 31일
Thanks for your answer, but I already tested this solution and got the same result :
isAlways(sqrt(x^2)==abs(x))
Warning: Unable to prove '(x^2)^(1/2) == abs(x)'.
> In symengine
In sym/isAlways (line 42)
ans =
logical
0
Torsten
Torsten 2021년 5월 31일
Ok. Then the symbolic toolbox is not able to proove the identity.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by