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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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;}); -- cgit v1.2.3