summaryrefslogtreecommitdiff
path: root/1241/CH6/EX6.20/exa6_20.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1241/CH6/EX6.20/exa6_20.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1241/CH6/EX6.20/exa6_20.sce')
-rwxr-xr-x1241/CH6/EX6.20/exa6_20.sce24
1 files changed, 24 insertions, 0 deletions
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//