Each column of an array can be formatted differently by using a control pair in
argument A for each column of the array.
1'4 c; 2 6 1. T
1;
... ..
j. 2 I 3 1.1.
* I) 0
4 1.c I 6
3.2 I 0
I
... 8 2 <$ ..( :I. 2 3 I 4
yL Width of six positions
(left margin)
:.,,I I
i
Notes:
1. If the OPW system variable is set to an invalid value, OPW IMPLICIT ERROR will
2. Even if the specified format causes all of the significant digits to be truncated,
result when the format function is used.
the sign of the original number is retained. For example:
Lc 2 T '" , 0 I) 0 4.
... , o i)
The sign is retained.
110
APL OPERATORS
C/"
c:
An APL operator applies one or more dyadic primitive scalar functions to arrays.
The operators are reduction, inner product, outer product, and scan.
Reduction Operator (/)
The symbol for the reduction operator is /. The forms of reduction are: ~/IIlB or
@/B or@+B, whereacan be any primitive dyadic scalar function that is applied
between each of the elements of a single vector.
The rank of the result is one less than the rank of argument B, unless argument B
is a scalar or a single-element vector; then the result is the value of the single element
of argument B. When argument B is a vector, the reduction of that vector is the same
as putting the primitive dyadic function between each of the elements:
If argument B is an empty vector (see Chapter 31, then the result is the identity
element, if one exists, for the specified function. The identity elements are listed
in the following table:
Identity Element Table
Dyadic
Function
Times
Plus
Divide
Minus
Power
Logarithm
Maximum
Minimum
Residue
Circular
Binominal
Or
And
Nor
Nand
Equal to
Not equal to
Greater than
Not less than
Less than
Not greater than
X
t
-
-
*
e
r
L
I
0
!
V
A
V
A
N
N
- -
#
>
2
<
5
Identity
Element
7.237.. . E75
7.237.. . E75
0
1
0
1
111
Previous Page Next Page