diff options
Diffstat (limited to '3860/CH2/EX2.6/EX2_6.sce')
-rw-r--r-- | 3860/CH2/EX2.6/EX2_6.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/3860/CH2/EX2.6/EX2_6.sce b/3860/CH2/EX2.6/EX2_6.sce new file mode 100644 index 000000000..810a106b8 --- /dev/null +++ b/3860/CH2/EX2.6/EX2_6.sce @@ -0,0 +1,11 @@ +//Example 2.6: 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 = ab''(c + d''e) + a''bc'')')
+disp('Finding complement using Demorgan''s Theorem')
+disp('f'' = [ab''(c + d''e) + a''bc'']''')
+disp('f'' = [ab''(c + d''e)]'' [a''bc'']''')
+disp('f'' = [a'' + b + (c + d''e)''][a + b'' + c]')
+disp('f'' = [a'' + b + c''(d''e)''][a + b'' + c]')
+disp('f'' = [a'' + b + c''(d + e'')][a + b'' + c]')
|