Examples: Matrix Boolean Operations
> libname:="C:\\Program Files\\Maple 7\\boolean", libname:
> with(linalg): with(booleanop):
Warning, the protected names norm and trace have been redefined and unprotected
pp. 157-159 from K. Rosen, Discrete Mathematics and Its Applications, 4th ed.
> A:=matrix(2,3,[1,0,1,0,1,0]); B:=matrix(2,3,[0,1,0,1,1,0]);
> join(A,B);
> meet(A,B);
> A:=matrix(3,2,[1,0,0,1,1,0]); B:=matrix(2,3,[1,1,0,0,1,1]);
> booleanprod(A,B);
> A:=matrix(3,3,[0,0,1,1,0,0,1,1,0]);
> A2:=booleanprod(A,A);
> A3:=booleanprod(A2,A);
> A4:=booleanprod(A3,A);
> A5:=booleanprod(A4,A);
Hint: After performing the command for A2, highlight the command, copy it, then use it (with changes) for subsequent commands.
Maple
TM is a registered trademark of Waterloo Maple Inc.
Math rendered by
WebEQ