Chapter 3. Apl Language Elements; Variables - IBM 5110 User Manual

Apl
Table of Contents

Advertisement

Chapter 3. APL Language Elements
In this chapter, the following topics concerning the APL language
elements are discussed:
• Variables
• Data representation
• Arrays
• Examples of useful APL statements and user-defined functions
VARIABLES
You can store data in the 5110 by assigning it to a variable name.
These stored items are called variables. Whenever the variable name
is used, APL supplies the data associated with that name. A variable
name can be up to 77 characters in length with no blanks; the first
character must be alphabetic, and the remaining characters can be any
combination of alphabetic, and numeric characters. The
-+-
(assignment
arrow) is used to assign data to a variable:
LENC1TH~··b
WIDTHf-8
AREA~LENGTHxWIDTH
To display the value of a variable, enter the variable name:
LENGTH
6
WIDTH
8
AI~EA
Lt·B
APL Language Elements
13

Advertisement

Table of Contents
loading

Table of Contents