summaryrefslogtreecommitdiff
path: root/3860/CH3/EX3.9/Ex3_9.sce
blob: 93438d488d1c2bdf05796324b5b00ae3e653c955 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Example 3.9 Reduction using K-Map
clc; //clears the console window
clear; //clears the variable browser
disp('The given function is x''yz'' + x''yx + xy''z'' + xy''z + xyz')
disp('The mapping is shown below')
disp('      X''Y''  X''Y  XY  XY''')
disp('Z''          1         1')
disp('Z           1    1     ') //The kmap for given function is displayed//
disp('After finding the two essential prime implicants m7 is still uncovered. The following are the two solutions.')
disp('f = x''y + xy'' + xz')
disp('f = x''y + xy'' + yz')