What the mathematical XOR function is

  • Thread starter qwpoi
  • Start date
  • #1
45
0
Would someone explain to me what the mathematical XOR function is? I came across it while reading a book on cryptography, and the explanation that is in the book doesn't really help me in fully understanding the function.

Much thanks,

-Betsy
 
Last edited by a moderator:

Answers and Replies

  • #2
18,416
8,233
One of the logic gates

AND | OR | XOR | NOT | NAND | NOR | XNOR

The XOR gate acts in the same way as the logical "either/or." The output is "true" if either, but not both, of the inputs are "true." The output is "false" if both inputs are "false" or if both inputs are "true."
 
  • #3
Integral
Staff Emeritus
Science Advisor
Gold Member
7,201
56
Let me add a bit to what Gregg has said.

The eXclusive OR function differs from the OR gate when both inputs are true.

Think of a regular OR gate as 2 switches connceted to a light in parallel, in this configuration either or both switchs will turn the light on.

If the switches could be wired as an eXclusive OR gate when both switchs are on the light will not be turned on.
 
  • #4
45
0
Cool, thanks.
 

Related Threads on What the mathematical XOR function is

  • Last Post
Replies
5
Views
2K
Replies
3
Views
3K
  • Last Post
Replies
18
Views
3K
  • Last Post
Replies
1
Views
1K
Replies
1
Views
2K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
1
Views
1K
Replies
7
Views
813
  • Last Post
Replies
5
Views
9K
Replies
13
Views
1K
Top