summaryrefslogtreecommitdiff
path: root/3860/CH2/EX2.6/EX2_6.sce
blob: 810a106b832baa3aee4e85de9ce73d55a57f6aca (plain)
1
2
3
4
5
6
7
8
9
10
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]')