simplify(~(~(x | y) & ~(y | z)))

1 回表示 (過去 30 日間)
Lisa Lee
Lisa Lee 2017 年 8 月 10 日
編集済み: Jan 2017 年 8 月 10 日
I don't understand why it is equivalent to x | y | z . Can someone please help to explain this to me?

採用された回答

Jan
Jan 2017 年 8 月 10 日
編集済み: Jan 2017 年 8 月 10 日
Remember these equivalences ( De Morgan's laws ):
~(x | y) <==> ~x & ~y
~(x & y) <==> ~x | ~y
Then
~(~(x | y) & ~(y | z)) ==>
~((~x & ~y) & (~y & ~z)) ==>
~(~x & ~y) | ~(~y & ~z) ==>
~~x | ~~y | ~~y | ~~z ==>
x | y | y | z ==>
x | y | z
Applying the operations from the outside to the inside is faster:
~(~(x | y) & ~(y | z)) ==>
~~(x | y) | ~~(x | z) ==>
x | y | y | z

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Filtering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by