summaryrefslogtreecommitdiff
path: root/3860/CH2/EX2.22
diff options
context:
space:
mode:
Diffstat (limited to '3860/CH2/EX2.22')
-rw-r--r--3860/CH2/EX2.22/Ex2_22.sce8
-rw-r--r--3860/CH2/EX2.22/Ex2_22.txt10
2 files changed, 18 insertions, 0 deletions
diff --git a/3860/CH2/EX2.22/Ex2_22.sce b/3860/CH2/EX2.22/Ex2_22.sce
new file mode 100644
index 000000000..1be2190ee
--- /dev/null
+++ b/3860/CH2/EX2.22/Ex2_22.sce
@@ -0,0 +1,8 @@
+//Example 2.22: Reduce expression using Boolean laws ( Consensus Theorem)
+clc // Clears the console
+disp('f = c''d''+ ac'' + ad + bd'' + ab ')
+disp('Two terms can be reduced using consensus twice')
+disp('c''d'' $ ad = ac'' and ad $ bd'' = ab')
+disp('Thus we can remove ac'' and ab leaving')
+disp('f = c''d''+ ad + bd'' ')
+//the reduced expression is displayed.
diff --git a/3860/CH2/EX2.22/Ex2_22.txt b/3860/CH2/EX2.22/Ex2_22.txt
new file mode 100644
index 000000000..fe62e006e
--- /dev/null
+++ b/3860/CH2/EX2.22/Ex2_22.txt
@@ -0,0 +1,10 @@
+
+ f = c'd'+ ac' + ad + bd' + ab
+
+ Two terms can be reduced using consensus twice
+
+ c'd' $ ad = ac' and ad $ bd' = ab
+
+ Thus we can remove ac' and ab leaving
+
+ f = c'd'+ ad + bd'