summaryrefslogtreecommitdiff
path: root/3860/CH3/EX3.40/Ex3_40.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3860/CH3/EX3.40/Ex3_40.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3860/CH3/EX3.40/Ex3_40.sce')
-rw-r--r--3860/CH3/EX3.40/Ex3_40.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3860/CH3/EX3.40/Ex3_40.sce b/3860/CH3/EX3.40/Ex3_40.sce
new file mode 100644
index 000000000..509c5c324
--- /dev/null
+++ b/3860/CH3/EX3.40/Ex3_40.sce
@@ -0,0 +1,21 @@
+//Example 3.40 Simplify expression using k-map
+clc; //clears the console window
+clear; //clears the variable browser
+disp('F = m(2,3,4,6,9,11,12)+ d(0,1,14,15)')
+disp(' C''D'' C''D CD CD''')
+disp('A''B'' X 1 1 0')
+disp('A''B X 0 0 1')
+disp('AB 1 0 X 1')
+disp('AB'' 1 1 X 0') //The kmap for F is displayed//
+disp('G = m(2,3,4,6,9,11,12)+ d(0,1,14,15)')
+disp(' C''D'' C''D CD CD''')
+disp('A''B'' X 0 1 0')
+disp('A''B X 0 0 0')
+disp('AB 0 0 X 1')
+disp('AB'' 1 1 X 1') //The kmap for G is displayed//
+disp('The one solution for F and G:')
+disp('F = B''D + ABD''+ A''D''')
+disp('G = AC + ABD''+ CD''')
+disp('The other solution for F and G: ')
+disp('F = B''D + A''CD'' + BD''')
+disp('G = AC + ABD'' + A''CD''')