EasyManuals Logo

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 #90 background imageLoading...
Page #90 background image
86
The + Function: Take
CIJ
Monadic (One-Argument) Form
There
is
no monadic form.
Dyadic (Two-Argument) Form: Take
At
8
The
take function result
is
the
number
of
elements specified
by
argument
A, taken
from
argument
B.
Argument B can be a scalar, vector,
or
other
array. Argument A
must be a scalar
or
vector
of
integers.
If
argument B
is
a vector, argument A must
be
a scalar. Argument A must be a vector with an
element
for each coordinate
of
argument
B.
When argument A
is
positive,
the
first elements
of
argument B
are
taken;
when argument A
is
negative,
the
last elements are taken.
If
argument
A specifies more elements
than
the
number
of
elements
in
argument
B,
the
result
is
padded with
O's
(or blanks for character data). The shape
of
the
result
is
the
value
of
A:
:~
"':~t:l,
2
7t:l.
2 3
I",
~3
t
23'+5
00
"'7tt
2 3
'+
5
00
1
:~34,5
:1,
'")
A"
5
6
B~3
~pl
2 3
~
5 6 7 8 9
10 11
12
B
~5
'+
"1
8
9
10
1.1
:1.2
:I.
!:5
1-
'.~
7
10
1
1
7
1
'+
"1
1.0
2
5
'1
.:..
6
2
5
B
1:1,
3
6
8
1t
2
~5tB
3
'7
Bf-2
,')
.:..
3~)
1.
2 3 4 5 6 7 8 9 10
:1.1
12
B
3
6
9
:l2
1
1
:L
tB
")
.:..
1-
1tB
1 2
3tB
"'1
2
3tB
9
:1,2

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