summaryrefslogtreecommitdiff
path: root/3827/CH2/EX2.3/EX2_3.sce
blob: f0f11903ca2c27f282eee3d101b78ee32595cf36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//EX2_3 Simplify Z = (AB + C)(B'D + C'E') + (AB + C)'

//clears the screen
clc

//clears already existing variables
clear

disp('Z = (AB + C)(B''D + C''E'') + (AB + C)''')
disp('Let X = (AB + C)''    X'' = AB + C')
disp('and Y = B''D + C''E''')
disp('Z = X''Y + X')
//By the elimination theorem i.e. X + X'Y = X + Y
disp('Z = Y + X')
disp('Z = B''D + C''E'' + (AB + C)'' ')