## ¬ Not equal

Compares each element in the right-hand argument with the corresponding element in the left-hand argument and returns 1 if they are not equal and 0 if they are. (This operation is affected by ŚCT, the comparison tolerance function)

                 12 ¬ 12
           0
                 2 ¬ 12
           1
                 'Q' ¬ 'Q'               (Compares character data)
           0
                 11 7 2 9¬11 3 2 6       (Compares each element in a vector with
           0 1 0 1                        the corresponding element in a vector of
                                          equal length)
                 'STOAT' ¬ 'TOAST'
           1 1 1 1 0
                 8 ¬ 2+2+2+2             (The right argument is evaluated
           0                              before the comparison is made)
                 TABLE „ 2 3 ˝ 1 2 3 4 5 6
                 MABLE „ 2 3 ˝ 3 3 3 5 5 5
                 TABLE ¬ MABLE           (Compares each element in a matrix
           1 1 0                          with the corresponding element in
           1 0 1                          a matrix of equal size and dimensions)
                 3¬TABLE
           1 1 0
           1 1 1
                 3 ¬ TABLE MABLE         (Compares 3 with the elements of the
            1 1 0  0 0 0                  nested vector)
            1 1 1  1 1 1

Topic: APLX Help : Help on APL language : APL Primitives : ¬ Not equal

[ Previous | Next | Contents | Index ]