aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-08 21:23:06 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-11-08 21:23:06 -0500
commit5c68173276c1c1b136a7eda3ad8f4423ab0ee9d0 (patch)
tree86662e96845bd66b620c26b44d82dd7f8181d2d2
parenteacc17c4ae6d8198a20f2a180315ea5adf658559 (diff)
Set prim property for •math functions so Depth treats them as pure and makes fills
-rw-r--r--docs/bqn.js2
1 files changed, 1 insertions, 1 deletions
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;});