Revision as of 02:44, 4 September 2020 editMiaumee (talk | contribs)Extended confirmed users765 edits General revision throughout the page. Improved inline citations. Reformated em-dash as per MoS. Rephrased sentences to prevent flow disruption. Minor punctuation fixes. Broken down lengthy sentences.Tags: Reverted Visual edit← Previous edit | Revision as of 15:38, 21 September 2020 edit undoJayBeeEll (talk | contribs)Extended confirmed users, New page reviewers28,266 edits Reverted 1 edit by Miaumee (talk): Per User talk:Miaumee, this is apparently the preferred response to poor editingTags: Twinkle UndoNext edit → | ||
Line 18: | Line 18: | ||
}} | }} | ||
'''Logical equality''' is a ] that corresponds to ] in ] and to the ] in ]. It gives the ] value '']'' if both functional arguments have the same ], and '']'' if they are different. | '''Logical equality''' is a ] that corresponds to ] in ] and to the ] in ]. It gives the ] value '']'' if both functional arguments have the same ], and '']'' if they are different. | ||
It is |
It is customary practice in various applications, if not always technically precise, to indicate the operation of '''logical equality''' on the logical operands ''x'' and ''y'' by any of the following forms: | ||
:<math>\begin{align} | :<math>\begin{align} | ||
Line 27: | Line 27: | ||
\end{align}</math><!-- should be "\mathrel{\mathrm{EQ}}", but it is broken --> | \end{align}</math><!-- should be "\mathrel{\mathrm{EQ}}", but it is broken --> | ||
Some logicians, however, draw a firm distinction between a ''functional form'', like those in the left column, which they interpret as an application of a function to a pair of |
Some logicians, however, draw a firm distinction between a ''functional form'', like those in the left column, which they interpret as an application of a function to a pair of arguments — and thus a mere indication that the value of the compound expression depends on the values of the component expressions — and an ''equational form'', like those in the right column, which they interpret as an assertion that the arguments have equal values, in other words, that the functional value of the compound expression is ''true''. | ||
In ], the plus sign "+" almost invariably indicates an operation that satisfies the axioms assigned to addition |
In ], the plus sign "+" almost invariably indicates an operation that satisfies the axioms assigned to addition in the type of ] that is known as a '']''. For boolean algebra, this means that the logical operation signified by "+" is not the same as the ] signified by "∨" but is actually equivalent to the logical inequality operator signified by "≠", or what amounts to the same thing, the ] signified by "XOR" or "⊕". Naturally, these variations in usage have caused some failures to communicate between mathematicians and switching engineers over the years. At any rate, one has the following array of corresponding forms for the symbols associated with logical inequality: | ||
:<math>\begin{align} | :<math>\begin{align} | ||
Line 36: | Line 36: | ||
\end{align}</math><!-- should be "\mathrel{\mathrm{XOR}}", but it is broken --> | \end{align}</math><!-- should be "\mathrel{\mathrm{XOR}}", but it is broken --> | ||
This explains why "EQ" is often called "]" in the ] of circuit engineers, since it is the ''negation'' of the '']'' operation; "NXOR" is a less commonly used alternative.<ref>{{citation|title=Using Java 2|first1=Brian|last1=Keeton|first2=Chuck|last2=Cavaness|first3=Geoff|last3=Friesen|publisher=Que Publishing|year=2001|isbn=9780789724687|page=112|url=https://books.google.com/books?id=yhFxiVyd1MgC&pg=PA112}}.</ref> Another rationalization of the admittedly circuitous name "XNOR" is that one begins with the "both false" operator NOR |
This explains why "EQ" is often called "]" in the ] of circuit engineers, since it is the ''negation'' of the '']'' operation; "NXOR" is a less commonly used alternative.<ref>{{citation|title=Using Java 2|first1=Brian|last1=Keeton|first2=Chuck|last2=Cavaness|first3=Geoff|last3=Friesen|publisher=Que Publishing|year=2001|isbn=9780789724687|page=112|url=https://books.google.com/books?id=yhFxiVyd1MgC&pg=PA112}}.</ref> Another rationalization of the admittedly circuitous name "XNOR" is that one begins with the "both false" operator NOR and then adds the eXception "or both true". | ||
==Definition== | ==Definition== | ||
Line 42: | Line 42: | ||
'''Logical equality''' is an ] on two ]s, typically the values of two ]s, that produces a value of ''true'' if and only if both operands are false or both operands are true. | '''Logical equality''' is an ] on two ]s, typically the values of two ]s, that produces a value of ''true'' if and only if both operands are false or both operands are true. | ||
The ] of '''p EQ q''' (also written as '''p = q''', '''p ↔ q''', |
The ] of '''p EQ q''' (also written as '''p = q''', '''p ↔ q''', '''Epq''', '''p ≡ q''', or '''p == q''') is as follows: | ||
] of A EQ B (red part is true)]] | ] of A EQ B (red part is true)]] |
Revision as of 15:38, 21 September 2020
For the corresponding concept in combinational logic, see XNOR gate.EQ, XNOR | |
---|---|
Definition | |
Truth table | |
Logic gate | |
Normal forms | |
Disjunctive | |
Conjunctive | |
Zhegalkin polynomial | |
Post's lattices | |
0-preserving | no |
1-preserving | yes |
Monotone | no |
Affine | yes |
Self-dual | no |
Logical equality is a logical operator that corresponds to equality in Boolean algebra and to the logical biconditional in propositional calculus. It gives the functional value true if both functional arguments have the same logical value, and false if they are different.
It is customary practice in various applications, if not always technically precise, to indicate the operation of logical equality on the logical operands x and y by any of the following forms:
Some logicians, however, draw a firm distinction between a functional form, like those in the left column, which they interpret as an application of a function to a pair of arguments — and thus a mere indication that the value of the compound expression depends on the values of the component expressions — and an equational form, like those in the right column, which they interpret as an assertion that the arguments have equal values, in other words, that the functional value of the compound expression is true.
In mathematics, the plus sign "+" almost invariably indicates an operation that satisfies the axioms assigned to addition in the type of algebraic structure that is known as a field. For boolean algebra, this means that the logical operation signified by "+" is not the same as the inclusive disjunction signified by "∨" but is actually equivalent to the logical inequality operator signified by "≠", or what amounts to the same thing, the exclusive disjunction signified by "XOR" or "⊕". Naturally, these variations in usage have caused some failures to communicate between mathematicians and switching engineers over the years. At any rate, one has the following array of corresponding forms for the symbols associated with logical inequality:
This explains why "EQ" is often called "XNOR" in the combinational logic of circuit engineers, since it is the negation of the XOR operation; "NXOR" is a less commonly used alternative. Another rationalization of the admittedly circuitous name "XNOR" is that one begins with the "both false" operator NOR and then adds the eXception "or both true".
Definition
Logical equality is an operation on two logical values, typically the values of two propositions, that produces a value of true if and only if both operands are false or both operands are true.
The truth table of p EQ q (also written as p = q, p ↔ q, Epq, p ≡ q, or p == q) is as follows:
Logical equality p q p = q 0 0 1 0 1 0 1 0 0 1 1 1
Alternative descriptions
The form (x = y) is equivalent to the form (x ∧ y) ∨ (¬x ∧ ¬y).
For the operands x and y, the truth table of the logical equality operator is as follows:
y T F x T T F F F T
See also
References
- Keeton, Brian; Cavaness, Chuck; Friesen, Geoff (2001), Using Java 2, Que Publishing, p. 112, ISBN 9780789724687.
External links
- [REDACTED] Media related to Logical equality at Wikimedia Commons
- Mathworld, XNOR
Common logical connectives | ||
---|---|---|
Philosophy portal |