APLX Help : Help on APL language : APL Primitives : ⌈ 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 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 |
|
APLX Help : Help on APL language : APL Primitives : ⌈ Greater of
|
Copyright © 1996-2010 MicroAPL Ltd