72
The F Function:
Not
Equal To
CD
Monadic (One-Argument) Form
There
is
no monadic form.
Dyadic (Two-Argument) Form:
Not
Equal
To
A'/=B
The
not
equal to function result
is
1 when argument A
is
not
equal
to
argument
8;
otherwise, the result
is
O.
The arguments (numeric or character) can be 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:
Ot-5
1
o
'A't-'A'
()
:I.
~5
,
:I.
"':l
···:3t-~.:;,:I.
()
'"4·
o 1
:1.
If
one
argument
is
a scalar or a single element array, the shape of
the
result
is
the
same
as
that
of
the
other
argument.
The
single element
is
applied
to
every element
of
the
multielement array:
'A'¢'ABACADAEAFAG'
o
:I.
0
:I.
0
:I.
0
:I.
0 1 0
:I.
Note:
If
the arguments are numeric, the result of the
~function
depends on the
OCT system variable (see Chapter 5 for information on
the
OCT system variable).
The
not
equal to function can also be used
as
an exclusive or function. When used
in
this manner,
the
value of
the
arguments must be either 0
or
1:
Exclusive Or Table
Operator~---
_Argument
A