From 5c68173276c1c1b136a7eda3ad8f4423ab0ee9d0 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 8 Nov 2021 21:23:06 -0500 Subject: =?UTF-8?q?Set=20prim=20property=20for=20=E2=80=A2math=20functions?= =?UTF-8?q?=20so=20Depth=20treats=20them=20as=20pure=20and=20makes=20fills?= 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 fafb4ac1..a549c14e 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -583,7 +583,7 @@ let primitives = dynsys(state => { 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(" ")), - f=>typeof f==="function"?runtime[61](f,0):f + f=>typeof f==="function"?(f.prim=null,runtime[61](f,0)):f ); trig.map((_,i)=>{let f=mathns[i],g=mathns[i+trig.length]; f.inverse=g; g.inverse=f;}); -- cgit v1.2.3