Difference between revisions of "Binary operation"

Line 1: Line 1:
 
{{stub}}
 
{{stub}}
  
A '''binary operation''' is an [[operation]] which takes two arguments.
+
A '''binary operation''' is an [[operation]] which takes two arguments. Usually this takes an input and encodes it into machine code or binary. Then it returns a bit based on 2 bits, one from each string on their corresponding index. There are several binary operations that people tend to use a lot. Let's get to them:
 +
 
 +
'''AND'''
 +
\begin{tabular}{cc|c}
 +
<math>a</math> & <math>b</math> & expression \
 +
\hline
 +
True & True & True \
 +
True & False & False \
 +
False & False & False \
 +
False & True & False \
 +
\end{tabular}

Revision as of 18:26, 30 April 2024

This article is a stub. Help us out by expanding it.

A binary operation is an operation which takes two arguments. Usually this takes an input and encodes it into machine code or binary. Then it returns a bit based on 2 bits, one from each string on their corresponding index. There are several binary operations that people tend to use a lot. Let's get to them:

AND \begin{tabular}{cc|c} $a$ & $b$ & expression \ \hline True & True & True \ True & False & False \ False & False & False \ False & True & False \ \end{tabular}