EasyManuals Logo
Home>IBM>Laptop>5100

IBM 5100 Apl Reference Manual

IBM 5100
228 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 #36 background imageLoading...
Page #36 background image
32
Logical
Data
Logical (Boolean)
data
consists
of
only
ones
and
zeros.
The
relational
functions
(>
~
= <
~:;t)
generate logical
data
as
their
result;
the
result
is
1 if
the
condition
was
true
and
0 if
the
condition
was false.
The
output
can
then
be used as
arguments
to
the
logical
functions
(/\I\vv",)
to
check
for
certain
conditions
being
true
or
false.
Logical
data
can also be used
with
the
arithmetic
functions,
in which case it
is
treated
as numeric 1's
and
D's.
SCALAR
A single item,
whether
a single
number
or
single
character
constant,
is
called a
scalar.
It has
no
coordinates;
that
is, it
can
be
thought
of
as a
geometric
point.
The
follow-
ing
are
examples
of
scalars:
A I
,,,'
A
Scalars can be used
directly
in calculations
or
can be assigned
to
a variable name.
The
variable
name
for
the
scalar can
then
be used
in
the
calculations:
2x3
I.>
l~f'2
Bi"~:~
(.·~+B
.J
ARRAYS
Array
is
the
general
term
for
a collection
of
data,
and includes scalars (single
data
items), vectors (strings
of
data),
matrices (tables
of
data),
and
arrays
of
higher
dimensions
(multiple
tables). All primitive (built-in)
functions
are designed
to
handle
arrays.
Some
functions
are designed specifically
to
handle arrays
rather
than
scalars.
Indexing,
for
example, can select
certain
elements
from
an array
for
processing.

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
BrandIBM
Model5100
CategoryLaptop
LanguageEnglish

Related product manuals