aboutsummaryrefslogtreecommitdiff
path: root/docs/doc/arithmetic.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doc/arithmetic.html')
-rw-r--r--docs/doc/arithmetic.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/doc/arithmetic.html b/docs/doc/arithmetic.html
new file mode 100644
index 00000000..ee6e66ac
--- /dev/null
+++ b/docs/doc/arithmetic.html
@@ -0,0 +1,16 @@
+<head>
+ <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
+ <link href="../style.css" rel="stylesheet"/>
+ <title>BQN: Arithmetic functions</title>
+</head>
+<div class="nav"><a href="https://github.com/mlochbaum/BQN">BQN</a> / <a href="../index.html">main</a> / <a href="index.html">doc</a></div>
+<h1 id="arithmetic-functions">Arithmetic functions</h1>
+<p>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.</p>
+<p>Summary of differences for APLers:</p>
+<ul>
+<li>Exponentiation is represented with the star character <code><span class='Function'>⋆</span></code>, since asterisk <code><span class='Value'>*</span></code> is rendered inconsistently across fonts and sometimes appears as a superscript.</li>
+<li>There's a root function <code><span class='Function'>√</span></code>.</li>
+<li>Not uses a different symbol <code><span class='Function'>¬</span></code>, and logical functions (described on <a href="logic.html">their own page</a>) are extended linearly in all arguments instead of using GCD or LCM.</li>
+<li>Dyadic arithmetic functions use leading axis agreement like J.</li>
+</ul>
+<h2 id=""></h2>