From 9997b5b5edcab4fccb2485ef54faa2d27225c411 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 24 Nov 2022 08:06:22 -0500 Subject: =?UTF-8?q?BREAKING:=20remove=20constants=20(ln2,=20etc)=20from=20?= =?UTF-8?q?=E2=80=A2math?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/bqn.js | 2 +- spec/system.md | 2 -- 2 files changed, 1 insertion(+), 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. -- cgit v1.2.3