Sharp PC-1403 Operation Manual page 60

Hide thumbs Also See for PC-1403:
Table of Contents

Advertisement

54
Printing of Matrixes
To print
the data (e.g.,
value of each element)
of matrix
X,
prepare
and execute
the
following
program.
If
you
execute
the
program by typing
"RUN"
and pressing
I
ENTER
l.
however,
all the matrix
data
will
be cleared from
memory. So
be sure to
execute the program
with
the ~
key.
100
"M":INPUT
"ROW";ll
110
INPUT
"COLUMN";JJ
120
FOR
l=O
TO
11-1
130 FOR J=O TO JJ-1
140
LPRINT "X(";l+1 ;",";J+1 ;")=";X(l,J)
150
NEXT J:NEXT
!:END
If
the data of matrix
Y
or Mis to be printed, change
"X"
at the two places
in
line 140
of
the above
program
to
read
"Y"
or
"M".
(Operation) Press
the
~
00
keys in
the
RUN
mode,
and the designated matrix
data
will
be
output on
the
printer.
(2 x
2
x
8
+
7]
+
(2
x 2 x
8
+
7)
+
(2
x
2
x
8
+
7)
=
117 bytes
I
I
Matrix X
Matrix
Y
Resultant matrix
X=
[
2
3
J
5
1
Y~
[
B
30
J
7
15
.
(matrix
M
undefined)
The
required
memory capacity will be cal
c
ulated as
follows:
Example
6:
To calculate the
multiplication of
the following two
matrixes
(X
·
Y
- X)
However,
when neither
matrix
Y nor matrix M
is
used,
the
values
(no.
of
rows
and
no.
of col
u
mns) in
brackets of each unused
matrix
will be treated
as
O for the
capacity
calculation.
The resultant matrix is only required
during the
calculation and
will
be
cleared on completion of the
calculation.
For
information,
no resultant matrix
is required for the execution of ~
,
IBM) ,
or
rn
.
Two resultant
matrixes
are
required
for
matrix
operations using
rn
and n
[E]'
since
these operations involve
two calculations (i.e.,
inversion and
multiplication).
If the message "MEMORY OVER"
appears
on
the display while
in
the
MATRIX
mode,
erase
the variables
or
programs
used in
BASIC
in
order to increase
the
unused
memory
capacity for matrix
calculations.
Using
as a Calcula tor

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents