summaryrefslogtreecommitdiff
path: root/3860/CH2/EX2.16/Ex2_16.sce
blob: d3531235d8e9dc6281a76fdafa8a0b07c364fa80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 2.16: Reduce expression using Boolean laws
clc // Clears the console
disp('wx + wxy + w''yz + w''y''z + w''xyz''')
disp(' = (wx + wxy) + (w''yz + w''y''z'') + w''xyz''')
disp(' = wx + w''z + w''xyz''')
disp(' = wx + w''(z + xyz'')')
disp(' = wx + w''(z + xy)')
disp(' = wx + w''z + w''xy)')
disp(' =w''z +  x( w + w''y)')
disp(' =w''z +  x( w + y)')
disp(' =w''z +  wx + xy')
//the reduced expression is displayed.