//example 3.2 clc; clear; disp("Multipl the factors of the foregoing equation to get"); disp('Y = A''A + A''B + BA +BB'); disp('it becomes, Y = A''B + AB + B '); disp('We can factor the foregooing equation as follows :'); disp('Y = B(A'' + A) + B = B + B = B '); disp('this says that output Y equals to B, so all we have to do is connect a wire between input B and output Y.');