## Arithmetic Functions

Submitted by admin on Tue, 05/19/2015 - 19:57+ Monadic

APL: conjugate +7 ←→ 7

Q: does not seem to exist

+ dyadic

APL: addition

Q: addition

- Monadic

APL: negate

Q: - (negative)

Works like ¯ in APL, so it creates a negative number, rather than negating everything to the right.

Q: -3 + 1 ←→ -2

APL: -3 + 1 ←→ ¯4

If you want to negate everything to the right in Q use neg, e.g. neg 3 -3 45.5

- dyadic

APL: subtract

Q: subtract

× Monadic

APL: sign of (signum)

Q: ?

× dyadic

APL: multiply

Q: use * instead

÷ Monadic

APL: reciprocal

Q: does not exist, use 1% instead

÷ dyadic

APL: divide

Q: use % instead

- Monadic

APL: ceiling

Q: ?

- dyadic

APL: greater of

Q: use | instead

⌊ Monadic

APL: floor

Q: ?

⌊ dyadic

APL: lesser of

Q: use & instead

| Monadic

APL: absolute value

Q: ?

| dyadic

APL: residue

Q: ?