blob: 7d0f0bcbeac2b5f3b65ddc9a511546cdbc35cb2b (
plain)
1
2
3
4
5
6
7
8
|
//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.
|