Arithmetic Functions¶
+ Plus¶
Monadic: Conjugate¶
For real numbers, returns the argument unchanged (identity).
Dyadic: Add¶
- Minus¶
Monadic: Negate¶
Dyadic: Subtract¶
× Times¶
Monadic: Signum¶
Returns ¯1, 0, or 1 depending on the sign of the argument.
Dyadic: Multiply¶
÷ Divide¶
Monadic: Reciprocal¶
Returns 1÷⍵. Raises DOMAIN ERROR for zero.
Dyadic: Divide¶
Raises DOMAIN ERROR for division by zero.
⌈ Upstile¶
Monadic: Ceiling¶
Returns the smallest integer greater than or equal to the argument.
Dyadic: Maximum¶
⌊ Downstile¶
Monadic: Floor¶
Returns the largest integer less than or equal to the argument.
Dyadic: Minimum¶
* Star¶
Monadic: Exponential¶
Returns e raised to the power of the argument.
Dyadic: Power¶
⍟ Log¶
Monadic: Natural logarithm¶
Dyadic: Logarithm¶
Left argument is the base.
| Stile¶
Monadic: Magnitude (absolute value)¶
Dyadic: Residue¶
The remainder when dividing the right argument by the left. Note: APL residue has the left argument as the divisor (opposite to most languages).
○ Circle¶
Monadic: Pi times¶
Multiplies the argument by π.
Dyadic: Circular functions¶
The left argument selects a trigonometric or hyperbolic function:
| Left | Function | Left | Function |
|---|---|---|---|
0 |
√(1-⍵²) |
||
1 |
sin | ¯1 |
arcsin |
2 |
cos | ¯2 |
arccos |
3 |
tan | ¯3 |
arctan |
4 |
√(1+⍵²) |
¯4 |
√(⍵²-1) |
5 |
sinh | ¯5 |
arcsinh |
6 |
cosh | ¯6 |
arccosh |
7 |
tanh | ¯7 |
arctanh |