//Example 2.25: Manipulation of algebric functions. clc // Clears the console disp('f = bc + ac + ab ') disp('f = bca + bca'' + ac + ab ')// converting into disjunctive normal form. disp('f = bca + bca'' + acb + acb'' + abc + abc'' ') disp('f = abc + a''bc + abc + ab''c + abc + abc'' ')// arranging into alphabetical order disp('f = a''bc + ab''c + abc'' + abc ') //removing duplicate terms. //the reduced expression is displayed.