Learn R Programming

QuantumOps (version 3.0.1)

dotmod2: dotmod2

Description

Takes two integers and takes the dot product of their binary representations. Output is the value of the dot product, modulus 2

Usage

dotmod2(x,a)

Arguments

x

integer

a

integer

Value

Binary value resulting from the bit-wise dot product modulus 2

Examples

Run this code
# NOT RUN {
 dotmod2(5,5)
 dotmod2(1,2)
 dotmod2(0,1)
# }

Run the code above in your browser using DataLab