summaryrefslogtreecommitdiff
path: root/3860/CH2/EX2.5/EX2_5.sce
blob: 57add8e50062bb2ecaeb78dbe80e97cd798164fe (plain)
1
2
3
4
5
6
7
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'')')