summaryrefslogtreecommitdiff
path: root/3860/CH2/EX2.22/Ex2_22.sce
blob: 1be2190eefb3ee14235dffb54c4db0f37e0a1cd5 (plain)
1
2
3
4
5
6
7
8
//Example 2.22: Reduce expression using Boolean laws ( Consensus Theorem)
clc // Clears the console
disp('f = c''d''+ ac'' + ad + bd'' + ab ')
disp('Two terms can be reduced using consensus twice')
disp('c''d'' $ ad = ac'' and ad $ bd'' = ab')
disp('Thus we can remove ac'' and ab leaving')
disp('f = c''d''+ ad + bd'' ')
//the reduced expression is displayed.