💾 Archived View for blitter.com › apl-books › apl.maxhost.org › amiga-apl.txt captured on 2022-07-16 at 17:20:39.

View Raw

More Information

-=-=-=-=-=-=-

apl\11 for amiga employs 1-origin indexing

use uae

amiga rom 3.1
workbench 3.1 (in ~/uae/adf)

smakefile seems to be for amiga
ported to early linux, SPARC and Sun by Micheal Cain
ported to amiga by Stefan Haubenthal from Unix APL\11
probably uses SAS C v6.50

cd hd1:
cd adf/apl
apl

apl <quick       load quick

)clear
)load mark1
)save mark1
)off
)digits 9        specifies that 9 digits are displayed
)origin 1        set origin to 1 (other values are also possible)
)width 80        set characters per line to 80
)vars            list all variables
)drop mark1      delete mark1

Lrun 'dir'       runs commands such as dir 

5*2      returns 25
5X3      returns 15
4%10     returns .4 (4 divided by 10)

v { 1 2 3 4 5
+/ v     sum all elements of v
X/ v     product all elements of v
v[1,2]   returns elements 1 and 2
O1       returns pi times 1
!5       returns factorial of 5

I5       returns interval 5, e.g. 1 2 3 4 5

replacement characters
----------------------

C for comment
R for rho
E for epsilon
Y for take (up arrow)
U for drop (down arrow)
D for min
S for max