EasyManuals Logo

IBM 5100 Basic Reference Manual

IBM 5100
187 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #126 background imageLoading...
Page #126 background image
MAT
matrix-name [(rows [,columns]
)]
= (arith-exp) *matrix-name
122
MAT
ASSIGNMENT (SCALAR MULTIPLICATION)
This statement allows you
to
multiply
the
elements
of
a numeric matrix by
the
value
of
an arithmetic expression, and assign
the
resulting products
to
the
elements
of
another numeric matrix. The syntax
of
this statement
is
as
shown:
MAT
matrix-name [(rows [,columns]
)]
= (arith-exp) *matrix-name
where:
matrix-name
is
the name
of
a numeric matrix.
rows, columns are redimension specifications (optional).
(arith~exp)
is
a scalar arithmetic expression, which must
be
enclosed
in
parentheses.
The scalar expression
is
evaluated, and each element
in
the
matrix
to
the
right
of
the
equal sign
is
multiplied by
the
value
of
the
expression. The result
is
assigned
to
the
corresponding elements
of
the
matrix
to
the
left
of
the
equal sign.
If
redimension specifications follow
the
matrix name
to
the left
of
the
equal sign,
the
truncated integer portion
of
each expression value
in
rows, columns
is
used
to
redimension
the
matrix before
the
multiplication.
Notes
About
MAT
(Scalar Multiplication)
Both matrices specified must be numeric.
Both matrices specified must have identical dimensions (after redimensioning,
if any).
If
redimension specifications are included,
the
rules under Redimensioning
Arrays,
Chapter 3, must be followed.
I
\

Table of Contents

Other manuals for IBM 5100

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM 5100 and is the answer not in the manual?

IBM 5100 Specifications

General IconGeneral
Release Year1975
RAM16 KB - 64 KB
Storage204 KB tape drive
Display5-inch CRT
Operating SystemAPL/BASIC
ProcessorIBM PALM (1.9 MHz)

Related product manuals