aboutsummaryrefslogtreecommitdiff
path: root/spec/system.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-11-24 08:58:41 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-11-24 09:02:46 -0500
commit976bd82fb0e830876cca117c302c8a19048033a4 (patch)
treef2ae15eac426087fa42051c2ff00bf1d0b56b9bd /spec/system.md
parent9997b5b5edcab4fccb2485ef54faa2d27225c411 (diff)
Specify more •math functions and implement JS Fact, Comb, GCD, LCM
Diffstat (limited to 'spec/system.md')
-rw-r--r--spec/system.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/system.md b/spec/system.md
index 0d6cffbf..5ba463bb 100644
--- a/spec/system.md
+++ b/spec/system.md
@@ -291,6 +291,10 @@ Other correctly-rounded arithmetic: monadic `Cbrt⇐3⊸√`, `Log2⇐2⋆⁼⊢
Standard trigonometric functions `Sin`, `Cos`, `Tan`, `Sinh`, `Cosh`, `Tanh`, with inverses preceded by `a` (`ASin`, etc.) and accessable with `⁼`. Additionally, the dyadic function `ATan2` giving the angle of vector `𝕨‿𝕩` relative to `1‿0`. All trig functions measure angles in radians.
+Special functions `Fact` and `LogFact` giving the factorial and its natural logarithm, possibly generalized to reals as the gamma function Γ(1+𝕩), and `Comb` giving the binomial function "`𝕨` choose `𝕩`". Also the error function `Erf` and its complement `ErfC`. The implementations `LogFact ← ⋆⁼Fact` and `ErfC ← 1-Erf` are mathematically correct but these two functions should support greater precision for a large argument.
+
+The greatest common divison `GCD` and least common multiple `LCM` of two numbers. Behavior for arguments other than natural numbers is not yet specified.
+
## Random generation
`•MakeRand` initializes a deterministic pseudorandom number generator with seed value `𝕩`. `•rand`, if it exists, is a globally accessible generator initialized at first use; this initialization should use randomness from an outside source if available. These random generators aren't required to be cryptographically secure and should always be treated as insecure. A random generator has the following member functions: