Preface
This publication is a reference manual that provides
specific information about the use of the IBM 5100
Portable Computer, the APL language, and installation
planning and procedures. It also provides information
about forms insertion and ribbon replacement for the
5103 printer. This publication is intended for users of
the 5100 and the APL language.
Prerequ isite Pub1 icat ion
IBM 5100 APL Introduction, SA21-9212
Related Publications
IBM 5100 APL Reference Card, GX21-9214
APL Language, GC26-3847
IBM 5100 Communications Reference Manual,
SA2 1-92 15
First Edition (August 1979)
Changes are continually made to the specifications herein; any such changes will
be reported in subsequent revisions or technical newsletters.
Requests for copies of IBM publications should be made to your IBM represen-
tative or the IBM branch office serving your locality.
A form for reader's comments is at the back of this publication. If the form
has been removed, address your comments to IBM Corporation, Publications,
Dept. 245, Rochester, Minnesota 55901.
@ Copyright International Business Machines Corporation, 1975
0
0
0
0
Contents
CHAPTER 1 . OPERATION ......... 1
I8M 5100 Overview ............ 1
Display Screen ............. 1
Power On or Restart Procedures ....... 4
Display Screen Control 5
Keyboard .............. 6
Attention ............. 6
Hold ............... 6
Execute .............. 7
Command ............. 7
Positioning the Cursor and Information on the
Display Screen ............ 7
Copy Display ............ 9
Indicator Lights ............. 9
Process Check ............ 9
In Process ............. 10
. Switches ............... 4
(-. i
..........
CHAPTER 2 . SYSTEM COMMANDS
System Overview ....
System Command Descriptions
The )CLEAR Command .
The )CONTINUE Command
ThelCOPYCommand . .
The)DROPCommand . .
The )ERASE Command .
The IFNSCommand . .
The )LIB Command . .
The )LOAD Command . .
The )MARK Command . .
The )MODE Command . .
The IOUTSEL Command .
The )PATCH Command .
The IPCOPY Command .
The IREWIND Command .
The)SAVECommand . .
The IS1 Command ...
ThelSIVCommand . .
The )SYMBOLS Command
The )VARSCommand . .
The IWSID Command . .
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
...... 11
...... 11
...... 11
...... 14
...... 14
...... 15
...... 16
...... 16
...... 17
...... 17
...... 19
...... 19
...... 21
...... 21
...... 22
...... 25
...... 26
...... 26
...... 27
...... 27
...... 28
...... 28
...... 29
CHAPTER 3 . DATA ........... 30
, Variables ............... 30
.. Data Representation ........... 30
Numbers .............. 30
Scaled Representation (Scientific Notation) 31
Character Constants .......... 31
Logical Data ............. 32
Scalar ................ 32
, Generating Arrays ........... 33
Finding the Shape of An Array ....... 34
Empty Arrays 36
Catenation .............. 37
Indexing ............... 39
c
(1 .
....
. Arrays ............... 32
............
CHAPTER 4 . PRIMITIVE (BUILT-IN) FUNCTIONS .
Primitive Scalar Functions .........
The + Function: Conjugate. Plus ......
The- Function: Negation. Minus .....
The x Function: Signum. Times ......
The + Function: Reciprocal. Divide .....
The r Function: Ceiling. Maximum .....
The I Function: Magnitude. Residue ....
The *Function: Exponential. Power ....
The @ Function: Natural Log. Logarithm ...
The OFunction: Pi Times. Circular .....
The ! Function: Factorial. Binomial .....
The ? Function: Roll .........
The A Function: And .........
The V Function: Or .........
The =Function: Not .........
The :Function: Nand .........
The VFunction: Nor .........
The >Function: Greater Than ......
The = Function: Equal To .......
The < Function: Less Than .......
The t Function: Greater Than or Equal To ...
The 5 Function: Less Than or Equal To ...
The #Function: Not Equal To ......
Primitive Mixed Functions .........
The p Function: Shape. Reshape (Structure) . .
The. Function: Ravel. Catenate. Laminate ...
The / Function: Compress .......
The \ Function: Expand ........
The 4 Function: Grade Up .......
The 1. Function: Take .........
The J. Function: Drop .........
The I. Function: Index Generator. Index of . .
The 0 Function: Reverse. Rotate .....
The @ Function: Transpose. Generalized Transpose
The ? Function: Deal .........
The 1 Function: Decode (Base Value) ....
The T Function: Encode(Representati0n) ...
The 6 Function: Membership .......
The Function: Matrix Inverse. Matrix Divide .
The P Function: Execute ........
The T Function: Format ........
The L Function: Floor. Minimum .....
The TFunction: GradeDown ......
APL Operators ............
Reduction Operator (/I ........
Inner Product Operator ( . 1
Outer Product Operator ( 0 . 1
Scan Operator (\I ..........
Special Symbols ............
Assignment Arrow f .........
Branch Arrow+ ..........
Quad 0 .............
QuadQuotem ...........
CommentA ............
Parentheses ( 1 ...........
.......
.......
.43
.43
.44
.45
.46
.48
.50
.51
.52
.54
.55
.56
.59
.61
.62
.63
.64
.65
.66
.67
.68
.69
.70
*71
.72
.73
.75
.77
.81
.82
.83
.84
.86
.87
.88
.89
.93
.95
.96
.99
.104
. 105
.107
.108
.111
.111
.113
.116
.118
.120
.120
.120
.120
.121
.121
.122
...
111
.
Previous Page Next Page