diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-11-24 08:06:22 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-11-24 08:06:22 -0500 |
| commit | 9997b5b5edcab4fccb2485ef54faa2d27225c411 (patch) | |
| tree | 7cd026330637278e8a0059c393d2f40c9f12b14a | |
| parent | 0bfe40cbd731ffd0f5f97ebb08f76560734f1c3b (diff) | |
BREAKING: remove constants (ln2, etc) from •math
| -rw-r--r-- | docs/bqn.js | 2 | ||||
| -rw-r--r-- | spec/system.md | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/docs/bqn.js b/docs/bqn.js index 60a08200..c5e0b475 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -669,7 +669,7 @@ let mathfn = f => { } let trig = "cos cosh sin sinh tan tanh".split(" "); let mathns = obj2ns(Math, - trig.concat(trig.map(n=>"a"+n),"LN10 LN2 LOG10E LOG2E cbrt expm1 hypot log10 log1p log2 round trunc atan2".split(" ")), + trig.concat(trig.map(n=>"a"+n),"cbrt expm1 hypot log10 log1p log2 round trunc atan2".split(" ")), f=>typeof f==="function"?mathfn(f):f ); trig.map((_,i)=>{let f=mathns[i],g=mathns[i+trig.length]; f.inverse=g; g.inverse=f;}); diff --git a/spec/system.md b/spec/system.md index 66e0c505..0d6cffbf 100644 --- a/spec/system.md +++ b/spec/system.md @@ -287,8 +287,6 @@ More accurately the modifier `•_maxTime_` *may* fail if execution of `𝔽` ta System namespace `•math` contains mathematical utilities that are not easily implemented with basic arithmetic, analogous to C's `math.h`. -Constants `ln10⇐⋆⁼10`, `ln2⇐⋆⁼2`, `log10e⇐÷⋆⁼10`, `log2e⇐÷⋆⁼2` computed in full precision. - Other correctly-rounded arithmetic: monadic `Cbrt⇐3⊸√`, `Log2⇐2⋆⁼⊢`, `Log10⇐10⋆⁼⊢`, `Log1p⇐⋆⁼1⊸+`, `Expm1⇐1-˜⋆`; dyadic `Hypot⇐+⌾(ט)`. 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. |
