The> Function: Greater Than - IBM 5100 Apl Reference Manual

Hide thumbs Also See for 5100:
Table of Contents

Advertisement

(
(
('~,
e
ll,
/
The >Function: Greater Than
[I)
Monadic (One-Argument) Form
There is no monadic form.
Dyadic (Two-Argument) Form: Greater Than A>B
The greater than function result is 1 when argument A is greater than argument B;
otherwise the result is O. The arguments can be numeric scalars, vectors, or other
arrays. The arguments must be the same shape, unless one of the arguments is a
scalar or any single-element array. Arguments of the same shape have the same
shape result:
o
-'2> 0
o
.-
~.~
;:
....
~~
o
1
o
5,1
'-:1.
'-~3>~5,
1
o
' ' ' 1 ·1·
o
o
1
If one argument is a scalar or a single-element array, the shape of the result is the
same as tha,t of the other argument. The single element is applied to every element
of the multielement array:
B~"2
~5
(.>
: 1 . 2
~3
1+
1'-
,'J
t.)
.f.{
1 2
-x
•• 1
I~.
c'
. .
}
6
3>B
1
1 0
0
0
0
Note: The result of the > function depends on the OCT system variable (see
Chapter 5 for information on the OCT system variable).
67

Advertisement

Table of Contents
loading

Table of Contents