diff options
Diffstat (limited to '3808/CH1/EX1.8/Ex1_8.sce')
-rw-r--r-- | 3808/CH1/EX1.8/Ex1_8.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/3808/CH1/EX1.8/Ex1_8.sce b/3808/CH1/EX1.8/Ex1_8.sce new file mode 100644 index 000000000..74bd443dc --- /dev/null +++ b/3808/CH1/EX1.8/Ex1_8.sce @@ -0,0 +1,15 @@ +//Chapter 01: The Foundations: Logic and Proofs + +clc; +clear; + +x = [0 1 1 0 1 1 0 1 1 0]; +y = [1 1 0 0 0 1 1 1 0 1]; + +bit_and=bitand(x,y) +bit_or=bitor(x,y) +bit_xor=bitxor(x,y) + +disp(bit_and,"The bitwise AND is") +disp(bit_or,"The bitwise OR is") +disp(bit_xor,"The bitwise XOR is") |