summaryrefslogtreecommitdiff
path: root/3827/CH3/EX3.5/Ex3_5.sce
blob: 54cfee788598d59211186c7f2830cf0a7f837480 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//EX3_5: Simplify WX + XY + X'Z' + WY'Z'

//clears the screen
clc

//clears already existing variables
clear

disp('WX + XY + X''Z'' + WY''Z''')
//add WZ' by consensus theorem
disp('= WX + XY + X''Z'' + WY''Z'' + WZ''')//eliminate WY'Z'
disp('= WX + XY + X''Z'' + WZ''')      //eliminate WZ'
disp('= WX + XY + X''Z''')