summaryrefslogtreecommitdiff
path: root/3860/CH2/EX2.22/Ex2_22.sce
diff options
context:
space:
mode:
Diffstat (limited to '3860/CH2/EX2.22/Ex2_22.sce')
-rw-r--r--3860/CH2/EX2.22/Ex2_22.sce8
1 files changed, 8 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.