MCPcopy Create free account
hub / github.com/microsoft/SandDance / symexp

Function symexp

docs/app/js/sanddance-app.js:106683–106683  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

106681const log = (sign)=>(x)=>Math.log(sign * x);
106682const symlog = (c)=>(x)=>Math.sign(x) * Math.log1p(Math.abs(x / c));
106683const symexp = (c)=>(x)=>Math.sign(x) * Math.expm1(Math.abs(x)) * c;
106684const pow = (exponent)=>(x)=>x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);
106685function pan(domain, delta, lift, ground) {
106686 const d0 = lift(domain[0]), d1 = lift(peek(domain)), dd = (d1 - d0) * delta;

Callers 2

panSymlogFunction · 0.70
zoomSymlogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected