From 34c492e0e3e7cabe364112402ea92e5b7a3485c6 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sun, 6 Jun 2021 22:00:45 -0400 Subject: Add arithmetic primitive documentation --- docs/doc/primitive.html | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'docs/doc/primitive.html') diff --git a/docs/doc/primitive.html b/docs/doc/primitive.html index 1c973627..d50c58d6 100644 --- a/docs/doc/primitive.html +++ b/docs/doc/primitive.html @@ -9,7 +9,7 @@

Primitives have no side effects other than errors, and can't perform infinite computations, except in the case that the operand to a primitive modifier is a function that has side effects or never returns (primitive modifiers never perform computation when passed operands—they always bind the operands and act when called on arguments). Side effects here include both writing state such as variables or printed output, and reading any outside state, so that a function with no side effects always returns the same result if passed the same arguments. Trains and list notation have the same properties, so that tacit code written entirely with primitives, trains, and lists always describes finite, self-contained computations.

Recursion is the primary way to perform potentially infinite computations in BQN, and it can be packaged into control structures like While for ease of use. A given BQN implementation might also provide system values for "impure" tasks like file access or other I/O.

Functions

-

Functions that have significant differences from APL functions are marked with an asterisk. Links for these entries go to dedicated BQN documentation while other links go to the APL Wiki.

+

Functions that have significant differences from APL functions are marked with an asterisk. Primitives without an asterisk don't all have documentation; those without it link to the APL Wiki.

@@ -21,43 +21,43 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -76,8 +76,8 @@ - - + + -- cgit v1.2.3
+ConjugateAddConjugateAdd
-NegateSubtractNegateSubtract
×SignMultiplySignMultiply
÷ReciprocalDivideReciprocalDivide
ExponentialPowerExponentialPower
Square RootRootSquare RootRoot
FloorMinimumFloorMinimum
CeilingMaximumCeilingMaximum
|Absolute ValueModulusAbsolute ValueModulus