If both arguments are matrices, each row of A (conversion factor) is applied to each
column of B. The result is a matrix containing the converted values for each column
of B:
. 44-2 3p:I.O 1.0 10 20 10 5
B+3 2pl 2 2 4 3 3
A
1.0 10 I0
a0 1.0 5
12
a 4
33
123 243
63 123
I3
ALB
The following examples convert hours, minutes, and second to all seconds:
The following illustration shows how it was done:
Argument A (number system)
60 units (seconds) equals one unit of
the next position to the left.
60 units (minutes) equals one unit of the
next position to the left.
124 units (hours) equals one unit of the
next position.
Argument B
1 (hour) 30 (minutes) 15 (seconds)
The result was obtained as follows:
15 = 15seconds
30x 60 = 1800seconds
1 x 60 x 60 = 3600 seconds
541 5 seconds
7
J
l.I>
3
98
I:I
The T Function: Encode (Representation)
Monadic Form
There is no monadic form.
Dyadic Form: Encode AT B
This function is the reverse of the decode function. Theencode function result is
the representation of argument B in the number system specified by argument A.
Note: Be sure argument A is long enough to completely represent argument B or
an
incorrect answer results.
For example, the representation of 1776 in the decimal number system (base 10):
3. 0 :I. 0 I. 0 :I. 0 T :1'"176
:I. '7 '7 6
The following illustration shows how it was done:
Argument A (number system) specifies the following:
10 10 10 10
t t
t 1 Ten units in each of these positions
equals one unit of the next position to the
left.
Argument B has this value:
1776
c:
99
Previous Page Next Page