summaryrefslogtreecommitdiff
path: root/3827/CH4/EX4.2/EX4_2.sce
blob: e69b9440acbefde25fb01ce716fddd1fd0c34e40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//EX4_2:Show that a′c + b′c′ + ab = a′b′ + bc + ac′.

//clears the screen
clc

//clears already existing variables
clear

disp('LHS = a′c(b + b′) + b′c′(a + a′) + ab(c + c′)');
disp('= a′bc + a′b′c + ab′c′ + a′b′c′ + abc + abc′');
disp('= m3 + m1 + m4 + m0 + m7 + m6');
disp('RHS = a′b′(c + c′) + bc(a + a′) + ac′(b + b′)');
disp('= a′b′c + a′b′c + abc + a′bc + abc′ + ab′c′');
disp('= m1 + m0 + m7 + m3 + m6 + m4');