IBM 5110 User Manual page 39

Apl
Table of Contents

Advertisement

34
To determine whether a variable is character or numeric:
VDETERMINE[[]JV
'\}
DETEI~MINE
W
[lJ
'NC'[DIO+(-lt2tlt,W)='
'J
c
N
V
AE'" <"I'
BE··<7
DETEI~MINE
A
nETEI~MINE
B
-+---------.
VDETEI~MINE:I.
[[]J'\}
V
DETEI~MINE:I.
W
1::1.:]
'NC'
[[lID+'
':::::1.
t
0 (.>W]
' \ ,1
DETEI~MINE:I.
A
c
[IETEI~MINEl
B
N
To make scalar or vector into a matrix:
VMATI:~
I X [[]] V
V ZE"MATRIX M
AE" •
ABCDEFG'
X~"
MATI~IX
A
X
The result is C for character or
N for numeric.
AHCDEFG
_1-------
The result is a 1 by 7 matrix.
(.)X
1 7
To delete all user-defined function names starting with a specified
character vector from the active workspace:
VDEI...ETEFN[[]]V
V DELETEFN C;NL;Z;X
[1]
Z~««ltpNI...)lpC)tNI...)A,=C~,C)fNL~(ltC)
ONI...
3
[2::1
Xt--[]EX Z
V
Vf~DD[[]]V
V ADD
--------------
[1]
3+t.~
V
DEI...FTEFN 'AD'
ADD
VALUE E
I~ r~o I~
ADD
A user-defined function in the
active workspace
The function is no longer in the
active workspace

Advertisement

Table of Contents
loading

Table of Contents