98
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:
A~2
3p10
10
10
20
10
5
B~3
2pl
2 2 4 3 3
A
:1.0
10
10
20
:1.0
5
B
1 2
2
'+
3 3
AJ.B
123
21+3
63
:L23
The following examples convert hours, minutes, and second to
all
seconds:
24
60
6011
30
15
5415
The following illustration shows how it was done:
Argument A (number system)
24 60 60
1
.....
_________ 60 units (minutes) equals one unit of the
next position
to
the left.
fL..
______
60 units (seconds) equals one unit of
the next position
to
the left.
'--------------24
units (hours) equals one unit of the
next position.
Argument B
1 (hour) 30 (minutes) 15 (seconds)
The result was obtained
as
follows:
15
30x
60
1x60x60
15 seconds
1800 seconds
3600 seconds
5415 seconds
I~
..
J