Home · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z · Numbers & Symbols

The Compleat User RPL Encyclopedia


(“Not Equal”)

obj obj    0 or 1
Keyboard Access:
  HP-28: the  key
  HP48S: [alpha] RS-1
         PRG TEST NXT
  HP48G: [alpha] RS-1
         PRG TEST
HP49/50: LS-[+/–]
         LS-PRG TEST
         «TESTS» NXT
Not Equal function: Tests whether the level 2 object is not equal to the level 1 object.

If the two objects are of different types, then  always returns 1, similar to   . However, when the object types are the same,  is not always the same as ; for example:

    0 (false, because they are equal)
    1 (true, because they are not the same)
The  function follows the “0 if false, 1 if true” rule. It is intended for use in program branching, but it can be used inside algebraic objects for “conditional calculations” without any program branching required.

Examples:

    1 (true, because 5 is not = 9)
    0 (false, because 5 = 5)
    1 (true, because 5 is not = 2)
 returns A if C=D, or A+B if C≠D.
    same as above.
    same as above (because  automatically does ).
HP49/50 anomaly:
 
 
    0 (Wrong! They are in fact unequal, since matrix multiplication is not commutative.)

HP49G bug:     0 (should be )
This bug is not present in the HP49G+ or HP50G.

HP49/50 maximum integer inputs: no limit.

BYTES: 2.5