Not Equal to
Not Equal to (
≠) is a comparison function which tests whether argument elements are tolerantly unequal. It is the negation of Equal to (
=). Thus it returns 0 if the elements being compared match and 1 if they do not.
See Equal to for a more detailed treatment of equality testing.
2 2.5 3 3.5 ≠ 2.5 1 0 1 1
When the arguments to Not Equal to are Boolean, it is the exclusive or or xor function. Xor is one of the most important Boolean functions because it is equivalent to addition of the arguments with modulus 2. Like addition, it is commutative and associative. It is also equivalent to subtraction with modulus 2 because the negative of a number is the same as the original number (mod 2): the negative of an odd number is still odd, and the negative of an even number is still even.
|APL built-ins |
|Monadic||Conjugate ∙ Not ∙ Roll ∙ Type|
|Dyadic||Add ∙ Subtract ∙ Equal to (Xnor) ∙ Not Equal to (Xor)|
|Structural||Shape ∙ Reshape ∙ Tally ∙ Depth ∙ Ravel ∙ Reverse ∙ Raze ∙ Mix ∙ Cut (K) ∙ Pair|
|Selection||Take ∙ Drop ∙ Unique ∙ Identity ∙ Select|
|Computational||Match ∙ Not Match ∙ Nub Sieve ∙ Format ∙ Execute|
|Primitive operators||Each ∙ Reverse Compose|
|Arrays||Index origin ∙ Migration level|
|Other||Zilde ∙ High minus ∙ Function axis|