keys for APLX ------------- shift + ÷ divide alt-dash × multiply shift-k ' shift-<- $ shift-; ) alt-l ⎕ box alt-+ ! factorial alt-i ⍳ indexed list character or iota function alt-g ∇ start/end of function alt-2 ¯ high minus sign alt-[ ← left arrow means assign e.g. a ←1 means assign 1 to variable a alt-r ⍴ reshape or rho operator alt-o ○ PI times alt-h △ triangle alt-~ ◇ diamond alt-q ? roll, e.g. ?3 returns a random number from 1 to 3 alt-d ⌊ floor shift-alt-5 ⌽ reverse elements of array along last axis * * exponential )LOAD MARK1 load program MARK1.aws )SAVE MARK1 save program MARK1.aws )IN MARK1 import a Transfile File MARK1.atf )OUT MARK1 create a Transfile File MARK1.atf )OFF exit aplx environment )CLEAR clears workspace )DISPLAY V display variable V )DIGITS displays how many digits after decimal point is printed )SYMBOLS display how many symbols have been used )TIME displays date and time )HOST cmd execute a host command, e.g. )HOST pwd prints working directory )HOST displays which operating system you are working on )VARS displays variables )LIB list all workspace names )FNS list all functions in current workspace )WIDTH displays print width, normally 80 characters variables and functions are case sensitive e.g. m is different from M v ← 1 2 3 4 5 ⌽ v 5 4 3 2 1 v[3] 3 v + 1 2 3 4 5 6 v - 1 0 1 2 3 4 v * 2 1 4 9 16 25 gives the array elements to the power of 2 +/v sum all elements of v ×/v product of all elements of v :Repeat ∇ goob ∇ :EndRepeat repeat a function a ← 1 2 3 b ← 0 1 0 a + b 1 3 3 a x 2 2 4 6 (a b c) ← 1 2 3 compound assignment a = 1, b = 2, c = 3 M -> 'GERBIE POWER' ⌽ M REWOP EIBREG 3 ⌽ M BIE POWERGER (rotates letters 3 to the left) ? 100 generate a random number 1 and 100 ? 5 10 20 generate a random number between 1 and 5, 1 and 10, and 1 and 20 !4 factorial 4 3L5 returns the lower number 3 ÷2 returns reciprocal of 2 14 5 78 145×1.15 multiple series of numbers by 1.15 2 3 reshape 1 2 3 4 5 6 (2 rows, 3 columns) 1 2 3 4 5 6 3 5 reshape 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 pi 1 displays pi multiplied by 1 (alt-o) alt-i 10 returns numbers 1 to 10 shift-l a returns lower case alphabet shift-l A returns upper case alphabet v <- alt-i 10 stores numbers 1 to 10 in v data <- ?100 p 100 store 100 random numbers from 1 to 100 in data boxPP <- 3 set print precision to 3 digits label: label down tri goob 'this is it' down tri keys ---- alt-shift 2 = quote ctrl-up arrow recalls previous line workspaces ---------- located in /usr/local/aplxpe/ws/ HELPDRAW.aws ALL_DEMOS HELPQWI.aws DEMO_Button DEMO_Menu DEMO_Picture DEMO_RoundRect TOOLKIT.aws fibspiral triangle