blob: 6419ebb549bef8796436674b7eb0b8f36042063b (
plain)
1
2
3
4
5
6
|
//Example 2.20: Reduce expression using Boolean laws ( Consensus Theorem)
clc // Clears the console
disp('f = a''b''c'' + a''bc'' + a''bc + ab''c''')
disp('f1 = a''c'' + a''b + b''c''')
disp('f2 = b''c'' + a''b reduced using consensus theorem') //term a'c' is removed as it is the consensus of other two terms.
//the reduced expression is displayed.
|