APLX
APLX was a cross-platform dialect of the programming language APL, created by British company MicroAPL Ltd., as a successor to their APL.68000 product.
APLX is intended for uses such as financial planning, market research, statistics, management information, and various kinds of scientific and engineering work. APLX is based on IBM's APL2, but includes several extensions. It is available on Microsoft Windows, Linux, and macOS. Though APLX keeps APL's extended character set, APLX is a bit more verbose, due to the prevalence of system functions with long names, and the use of structured-control keywords. The use of explicit loops is a major deviation from earlier APL versions and derivatives.
Effective July 11, 2016, MicroAPL withdrew APLX from commercial sale. British firm Dyalog Ltd., authors of Dyalog APL, began hosting the APLX Archive website including the download area and documentation.
Primitives
Functions
Glyph | Monadic | Axis | Dyadic | Axis |
---|---|---|---|---|
<syntaxhighlight lang=apl inline>+</source> | Conjugate | Add | vec | |
<syntaxhighlight lang=apl inline>-</source> | Negate | Subtract | vec | |
<syntaxhighlight lang=apl inline>×</source> | Sign of | Multiply | vec | |
<syntaxhighlight lang=apl inline>÷</source> | Reciprocal | Divide | vec | |
<syntaxhighlight lang=apl inline>⌈</source> | Ceiling | Greater of | vec | |
<syntaxhighlight lang=apl inline>⌊</source> | Floor | Lesser of | vec | |
</source> | Absolute value | Residue | vec | |
<syntaxhighlight lang=apl inline>⍳</source> | Index list | Index of | ||
<syntaxhighlight lang=apl inline>?</source> | Roll | Deal | ||
<syntaxhighlight lang=apl inline>*</source> | Exponential | To the power of | vec | |
<syntaxhighlight lang=apl inline>⍟</source> | Natural log | Log to the base | vec | |
<syntaxhighlight lang=apl inline>○</source> | Pi times | Circular and Hyperbolic functions | vec | |
<syntaxhighlight lang=apl inline>!</source> | Factorial | Binomial | vec | |
<syntaxhighlight lang=apl inline>⌹</source> | Matrix inverse | Matrix divide | ||
<syntaxhighlight lang=apl inline><</source> | Less than | vec | ||
<syntaxhighlight lang=apl inline>≤</source> | Less than or equal | vec | ||
<syntaxhighlight lang=apl inline>=</source> | Equal | vec | ||
<syntaxhighlight lang=apl inline>≥</source> | Greater than or equal | vec | ||
<syntaxhighlight lang=apl inline>></source> | Greater than | vec | ||
<syntaxhighlight lang=apl inline>≠</source> | Not equal | vec | ||
<syntaxhighlight lang=apl inline>≡</source> | Depth | Match | ||
<syntaxhighlight lang=apl inline>≢</source> | Not Match | |||
<syntaxhighlight lang=apl inline>∊</source> | Enlist | Membership | ||
<syntaxhighlight lang=apl inline>⍷</source> | Find | |||
<syntaxhighlight lang=apl inline>∪</source> | Unique | Union | ||
<syntaxhighlight lang=apl inline>∩</source> | Intersection | |||
<syntaxhighlight lang=apl inline>~</source> | Not | Without | ||
<syntaxhighlight lang=apl inline>∨</source> | Or | |||
<syntaxhighlight lang=apl inline>^</source> | And | |||
<syntaxhighlight lang=apl inline>⍱</source> | Nor | |||
<syntaxhighlight lang=apl inline>⍲</source> | Nand | |||
<syntaxhighlight lang=apl inline>⍴</source> | Shape of | Reshape | ||
<syntaxhighlight lang=apl inline>,</source> | Ravel | vec,frac | Catenate, Laminate | |
<syntaxhighlight lang=apl inline>⍪</source> | 1st axis catenate | |||
<syntaxhighlight lang=apl inline>⌽</source> | Reverse | scal | Rotate | scal |
<syntaxhighlight lang=apl inline>⊖</source> | Reverse First | scal | 1st axis rotate | scal |
<syntaxhighlight lang=apl inline>⍉</source> | Transpose | |||
<syntaxhighlight lang=apl inline>↑</source> | First | Take | vec | |
<syntaxhighlight lang=apl inline>↓</source> | Drop | vec | ||
<syntaxhighlight lang=apl inline>⊂</source> | Enclose | vec | Partition | scal |
<syntaxhighlight lang=apl inline>⊃</source> | Disclose | vec | Pick | |
<syntaxhighlight lang=apl inline>⌷</source> | Index | vec | ||
<syntaxhighlight lang=apl inline>⍋</source> | Grade up | |||
<syntaxhighlight lang=apl inline>⍒</source> | Grade down | |||
<syntaxhighlight lang=apl inline>⊤</source> | Encode | |||
<syntaxhighlight lang=apl inline>⊥</source> | Decode | |||
<syntaxhighlight lang=apl inline>⍺</source> | Picture format | |||
<syntaxhighlight lang=apl inline>⍕</source> | Format | Format by specification or by example | ||
<syntaxhighlight lang=apl inline>⍎</source> | Execute | |||
<syntaxhighlight lang=apl inline>⊣</source> | Stop | Left | ||
<syntaxhighlight lang=apl inline>⊢</source> | Pass | Right | ||
<syntaxhighlight lang=apl inline>/</source> | Compress, Replicate | scal | ||
<syntaxhighlight lang=apl inline>⌿</source> | 1st axis compress/replicate | scal | ||
<syntaxhighlight lang=apl inline>\</source> | Expand | scal | ||
<syntaxhighlight lang=apl inline>⍀</source> | 1st axis expand | scal |
In addition, a few primitives for component file operations were taken from or inspired by APL/700.
Operators
Glyph | Valence | Monadic call | Dyadic call |
---|---|---|---|
<syntaxhighlight lang=apl inline>/</source> | Monadic | Reduce | N-wise Reduce |
<syntaxhighlight lang=apl inline>⌿</source> | Monadic | 1st axis reduce | N-wise Reduce first |
<syntaxhighlight lang=apl inline>\</source> | Monadic | Scan | |
<syntaxhighlight lang=apl inline>⍀</source> | Monadic | 1st axis scan | |
<syntaxhighlight lang=apl inline>.</source> | Dyadic | Inner product | |
<syntaxhighlight lang=apl inline>∘.</source> | Monadic | Outer product | |
<syntaxhighlight lang=apl inline>¨</source> | Monadic | Each |
External links
APL dialects [edit] | |
---|---|
Maintained | APL+Win ∙ APL2 ∙ APL64 ∙ APL\iv ∙ Aplette ∙ April ∙ Co-dfns ∙ Dyalog APL ∙ Dyalog APL Vision ∙ dzaima/APL ∙ GNU APL ∙ Kap ∙ NARS2000 ∙ Pometo ∙ TinyAPL |
Historical | A Programming Language ∙ A+ (A) ∙ APL# ∙ APL2C ∙ APL\360 ∙ APL/700 ∙ APL\1130 ∙ APL\3000 ∙ APL.68000 ∙ APL*PLUS ∙ APL.jl ∙ APL.SV ∙ APLX ∙ Extended Dyalog APL ∙ Iverson notation ∙ IVSYS/7090 ∙ NARS ∙ ngn/apl ∙ openAPL ∙ Operators and Functions ∙ PAT ∙ Rowan ∙ SAX ∙ SHARP APL ∙ Rationalized APL ∙ VisualAPL (APLNext) ∙ VS APL ∙ York APL |
Derivatives | AHPL ∙ BQN ∙ CoSy ∙ ELI ∙ Glee ∙ I ∙ Ivy ∙ J ∙ Jelly ∙ K (Goal, Klong, Q) ∙ KamilaLisp ∙ Lang5 ∙ Lil ∙ Nial ∙ RAD ∙ Uiua |
Overviews | Comparison of APL dialects ∙ Timeline of array languages ∙ Timeline of influential array languages ∙ Family tree of array languages |