aboutsummaryrefslogtreecommitdiff
path: root/doc/arithmetic.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-13 10:28:39 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-13 10:28:39 -0500
commit0658e1ba9dc1095449e4c0289324955716d402ef (patch)
tree7a0a3716d634c69bcf77afe0da9fc9ec9983ff4a /doc/arithmetic.md
parent02d3ccdaee34c83aa26448794f4f98ef0adae58c (diff)
Use •Eval or •BQN instead of ⍎
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.
+
+##