Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
23
Task/Bitwise-operations/Maxima/bitwise-operations.maxima
Normal file
23
Task/Bitwise-operations/Maxima/bitwise-operations.maxima
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
load(functs)$
|
||||
|
||||
a: 3661$
|
||||
b: 2541$
|
||||
|
||||
logor(a, b);
|
||||
/* 4077 */
|
||||
|
||||
logand(a, b);
|
||||
/* 2125 */
|
||||
|
||||
logxor(a, b);
|
||||
/* 1952 */
|
||||
|
||||
/* NOT(x) is simply -x - 1
|
||||
-a - 1;
|
||||
/* -3662 */
|
||||
|
||||
logor(a, -a - 1);
|
||||
/* -1 */
|
||||
|
||||
logand(a, -a - 1);
|
||||
/* 0 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue