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

4 visualizaciones (últimos 30 días)
Lisa Lee
Lisa Lee el 10 de Ag. de 2017
Editada: Jan el 10 de Ag. de 2017
I don't understand why it is equivalent to x | y | z . Can someone please help to explain this to me?

Respuesta aceptada

Jan
Jan el 10 de Ag. de 2017
Editada: Jan el 10 de Ag. de 2017
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

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by