Boolean simplify fails for a simple expression

Fails:
>> syms x y z
>> simplify(x & xor(y, z))
Error using mupadengine/feval (line 163)
The first argument must be a condition.
Error in sym/simplify (line 58)
rSym = feval(symengine, 'simplify', s,...
However, when xor is in root:
>> simplify(xor(x & y, z))
ans =
x & y xor z

3 件のコメント

Nicolas Schmit
Nicolas Schmit 2018 年 5 月 7 日
I did not get a error when running your code in R2018a. Which version of MATLAB are you using?
John Smith
John Smith 2018 年 5 月 7 日
R2015a. Suppose I should update MATLAB or implement xor with "and", "or" and "not". I was hoping for something with lesser impact on the workflow, like patching the toolbox script, but thanks anyway!
Walter Roberson
Walter Roberson 2018 年 5 月 7 日
Unfortunately there does not appear to be any simple patch in that release.

サインインしてコメントする。

回答 (0 件)

質問済み:

2018 年 5 月 6 日

コメント済み:

2018 年 5 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by