Você está na página 1de 1

(may be useful when constructing a circuit as it has only one not operation and a small number of

and & or operations).

Algebra is the study of mathematical symbols and the rules for manipulating these
symbols;[2] it is a unifying thread of almost all of mathematics.[3] As such, it includes
everything from elementary equation solving to the study of abstractions such
as groups, rings, and fields. The more basic parts of algebra are called elementary algebra;
the more abstract parts are called abstract algebra or modern algebra.
Elementary algebra differs from arithmetic in the use of abstractions, such as using letters
to stand for numbers that are either unknown or allowed to take on many values.
In algebra, which is a broad division of mathematics, abstract algebra (occasionally
called modern algebra) is the study of algebraic structures. Algebraic structures
include groups, rings, fields, modules, vector spaces, lattices, and algebras.
Swapping numbers using xor:

x=x^y;
y=x^y;
x=x^y;

x^y = (~x & y) | (x & ~y);

Você também pode gostar