## — Greater of

Two-argument form See also one-argument form Ceiling

Finds the larger of two numbers. Each number in the right-hand argument is compared with the corresponding number in the left-hand argument. The result is the larger number from each comparison. (This operation is affected by ŒCT, the comparison tolerance)

                 87 — 91
           91
                ¯5 — ¯9                   (The negative number nearer 0
           ¯5                              is considered the greater)
                 20 7 40 — 91 3 41        (Each number in a vector is compared
           91 7 41                         with the corresponding number in a
                                           vector of equal size)
                 —/TABLE                  (The / operator used with —
           62.8 9.1                        to select the biggest in each row.
                                           See the entry for /.)
                 2 —1 (2 2 ½¼4) (¼3)      (The result of comparing 2 with each
            2    2 2   2 2 3               element in the right argument)
                 3 4
                 2  3—2 (2 2 ½¼4) (¼3)    (Arguments must be the same length)
           LENGTH ERROR
                 2 3—2(2 2½¼4)(¼3)
                 ^
                 (2 2½¼4) 3 (¼3)—3 (2 2 ½¼4) (3 2 1)
             3 3    3 3   3 2 3           (Corresponding elements compared)
             3 4    3 4

Topic: APLX Help : Help on APL language : APL Primitives : — Greater of

[ Previous | Next | Contents | Index ]