summaryrefslogtreecommitdiff
path: root/3860/CH2/EX2.5/EX2_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3860/CH2/EX2.5/EX2_5.sce')
-rw-r--r--3860/CH2/EX2.5/EX2_5.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/3860/CH2/EX2.5/EX2_5.sce b/3860/CH2/EX2.5/EX2_5.sce
new file mode 100644
index 000000000..57add8e50
--- /dev/null
+++ b/3860/CH2/EX2.5/EX2_5.sce
@@ -0,0 +1,8 @@
+//Example 2.5: Use of Demorgans Theorem.to find complement of a given function.
+clc; //clears the console
+clear; //clears all existing variables
+disp('The given expression is as follows')
+disp('f = wx''y + xy'' + wxz')
+disp('f'' = (wx''y + xy'' + wxz)''')
+disp('f'' = (wx''y)''(xy'')''(wxz)''')
+disp('f'' = (w''+ x + y'')(x'' + y)(w'' + x''+ z'')')