next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 website
Macaulay2Doc
::
ZZ & ZZ
ZZ & ZZ -- logical and
Synopsis
Operator:
&
Usage:
m & n
Inputs:
m
,
an
integer
n
,
an
integer
Outputs:
an
integer
, obtained from the bits of the integers
m
and
n
by logical 'and'.
Description
i1 : (2^15 + 2^13 + 2^42) & (2^15 + 2^23 + 2^42) == 2^15 + 2^42 o1 = true
See also
ZZ | ZZ
-- logical or
ZZ ^^ ZZ
-- logical exclusive-or
ZZ ~
-- logical not
Ways to use this method:
ZZ & ZZ
-- logical and