blob: 168388aae0ef8a49af2b1b48dce4b1aaa655ea41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//EX2_4 Factor A + B'CD
//clears the screen
clc
//clears already existing variables
clear
//This is of the form X + YZ
disp('Let X = A , Y = B'' and Z = CD')
disp('A + B''CD = X + YZ = (X + Y)(X + Z)')
disp('A + B''CD = (A + B'')(A + CD)')
//A + CD can be factored again using the second distributive law
disp('A + B''CD = (A + B'')(A + C)(A + D)')
|