summaryrefslogtreecommitdiff
path: root/1241/CH6/EX6.6
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.6
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.6')
-rwxr-xr-x1241/CH6/EX6.6/exa6_6.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/1241/CH6/EX6.6/exa6_6.sce b/1241/CH6/EX6.6/exa6_6.sce
new file mode 100755
index 000000000..78bab49bd
--- /dev/null
+++ b/1241/CH6/EX6.6/exa6_6.sce
@@ -0,0 +1,31 @@
+//Example 6-6//
+//map C=A''B''+AB''//
+clc
+//clears the console//
+clear
+//clears all existing variables//
+//Mapping the expression//
+disp(' B'' B ')
+disp('A'' 1 0 ')
+disp('A 1 0 ')
+disp(' From the map, high outputs for 0 and 2 ')
+a=[0 0 ; 1 0]
+disp(a)
+for i=1: 2
+ if a(i,1)==1 then
+ b(i,1)='A'
+ else
+ b(i,1)='A'''
+ end
+ if a(i,2)==1 then
+ b(i,2)='B'
+ else
+ b(i,2)='B'''
+ end
+end
+m=strcat([b(1,1),b(1,2)])
+n=strcat([b(2,1),b(2,2)])
+disp(' evaluating expression from truth table and map ')
+x=strcat([m"+",n]);
+disp(x)
+//Expression is displayed//