summaryrefslogtreecommitdiff
path: root/3860/CH2/EX2.24/Ex2_24.sce
blob: 434b63909557538bb7cb2b95f6ff0d5079761d5e (plain)
1
2
3
4
5
6
7
8
//Example 2.24: Reduce expression using Boolean laws 
clc // Clears the console
disp('w''xy + wz + xz + w''y''z + w''xy'' + wx''z')
disp('= wz + w''x + xz +w''y''z')
disp('= wz + w''x + w''y''z  since wz $ w''x = xz') 
disp('But  wz +w''y''z = z(w + w''y'') = z(w + y'')')
disp('= wz + w''x + y''z ')
//the reduced expression is displayed.