blob: 0e394e4777a31a4f1f727001618f5318ae7186f6 (
plain)
1
2
3
4
5
6
7
8
|
//Example 2.17: Reduce expression using Boolean laws
clc // Clears the console
disp('(x + y)(x + y +z'') + y''')
disp('=(x + y) + y''')
disp('= x + (y + y'')')
disp('= x + 1')
disp('= 1')
//the reduced expression is displayed.
|