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

View Raw

More Information

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

aplus running on acer
uses GPL

a+ to execute

1=1  give 1

alt @ gives <- operator
alt - gives divide
alt ] gives -> operator (clears error)
alt + gives x  multiplication

v <-2 3 1 1 2   assign array v a series of numbers

v <-1 2 3 4 5
+/v     returns sum of 15
x/v     returns product of 120 (not x but multiply)
+\v     returns partial sums (e.g. 1 3 6 10 15)

#v      returns number of elements in array v
v[0]    returns the first element which is 1
v*2     returns v to the power of 2

7*3  gives 343 (7 to the exponent 3)

1.23e5 gives 123000

?3 returns a random number from 0 to 2 (note difference from aplx)

"I can't go"  gives I can't go

ctrl-d exists a+

$off	exits a+

$load script	loads script
$load /usr/share/aplus-fsf/file

$ls		executes ls
$ps -efw        executes ps -efw
$cd /home/cubeman/apl

check MTS D5 distribution for APL\360

on xterm-apl
------------

alt [ gives <- operator
alt ] gives -> operator (clears error)
alt - gives multiply
alt = gives divide
alt s gives ceiling
alt d gives floor
alt 2 gives high minus
alt ` gives diamond
alt q gives ?
alt l gives box
alt o gives pi times
alt r gives reshape 
alt-shift-5 gives circle with vertical line