Learn R Programming

QuantumOps (version 3.0.1)

addmod2: addmod2

Description

Takes two integers and adds their bits modulus two. The resulting string of bits represents an integer, that value of which is the output.

Usage

addmod2(x,a)

Arguments

x

integer

a

integer

Value

Integer resulting from the bit-wise addition of two number modulus 2

Examples

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

Run the code above in your browser using DataLab