From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1241/CH6/EX6.20/exa6_20.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 1241/CH6/EX6.20/exa6_20.sce (limited to '1241/CH6/EX6.20') diff --git a/1241/CH6/EX6.20/exa6_20.sce b/1241/CH6/EX6.20/exa6_20.sce new file mode 100755 index 000000000..b0a756fc0 --- /dev/null +++ b/1241/CH6/EX6.20/exa6_20.sce @@ -0,0 +1,24 @@ +//Example 6-20// +//Find minimum of expression// +clc +//clears the console// +clear +//clears all existing variables// +//Mapping the expression// +disp('Y=M(0,1,9,10,11,13,14,15,16,17,22,23,26,27)') +disp(' A'' A ') +disp(' D''E'' D''E DE DE'' D''E'' D''E DE DE''') +disp('B''C'' 0 0 1 1 0 0 1 1 ') +disp('BC'' 1 1 1 1 1 1 0 0 ') +disp('BC 1 0 0 0 1 1 1 1 ') +disp('BC'' 1 0 0 0 1 1 0 0 ') +disp(' From the map, high outputs for 0,1,9,10,11,13,14,15,16,17,22,23,26,27 ') +//Therefore the kmap is displayed// +disp('The SOP of expression is:') +disp('Y=B''C''D+A''B''C+ABC+BD''E''+ACD''+ABD''') +disp('24 inputs') +disp('The POS of expression is:') +disp('Y=(B+C+D)(B''+C+D'')(A''+B+C+D)(A+B''+E'')(A+B''+D'')') +disp('21 inputs') +disp('Therefore POS form is the minimum expression') +//result is displayed// -- cgit