aboutsummaryrefslogtreecommitdiff
path: root/doc/arithmetic.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/arithmetic.md')
-rw-r--r--doc/arithmetic.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/arithmetic.md b/doc/arithmetic.md
new file mode 100644
index 00000000..d9a976a5
--- /dev/null
+++ b/doc/arithmetic.md
@@ -0,0 +1,13 @@
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/doc/arithmetic.html).*
+
+# Arithmetic functions
+
+BQN's arithmetic functions use mostly the same symbols as APL, and the functionality is actually defined by the language implementation's number system and not the specification, so there's not too much to say about them.
+
+Summary of differences for APLers:
+- Exponentiation is represented with the star character `⋆`, since asterisk `*` is rendered inconsistently across fonts and sometimes appears as a superscript.
+- There's a root function `√`.
+- Not uses a different symbol `¬`, and logical functions (described on [their own page](logic.md)) are extended linearly in all arguments instead of using GCD or LCM.
+- Dyadic arithmetic functions use leading axis agreement like J.
+
+##