summaryrefslogtreecommitdiff
path: root/3860/CH2/EX2.20/Ex2_20.sce
diff options
context:
space:
mode:
Diffstat (limited to '3860/CH2/EX2.20/Ex2_20.sce')
-rw-r--r--3860/CH2/EX2.20/Ex2_20.sce6
1 files changed, 6 insertions, 0 deletions
diff --git a/3860/CH2/EX2.20/Ex2_20.sce b/3860/CH2/EX2.20/Ex2_20.sce
new file mode 100644
index 000000000..6419ebb54
--- /dev/null
+++ b/3860/CH2/EX2.20/Ex2_20.sce
@@ -0,0 +1,6 @@
+//Example 2.20: Reduce expression using Boolean laws ( Consensus Theorem)
+clc // Clears the console
+disp('f = a''b''c'' + a''bc'' + a''bc + ab''c''')
+disp('f1 = a''c'' + a''b + b''c''')
+disp('f2 = b''c'' + a''b reduced using consensus theorem') //term a'c' is removed as it is the consensus of other two terms.
+//the reduced expression is displayed.