MCPcopy Index your code
hub / github.com/csev/py4e / log

Function log

code/gmane/d3.v3.js:7624–7626  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

7622 };
7623 function d3_scale_log(linear, base, positive, domain) {
7624 function log(x) {
7625 return (positive ? Math.log(x < 0 ? 0 : x) : -Math.log(x > 0 ? 0 : -x)) / Math.log(base);
7626 }
7627 function pow(x) {
7628 return positive ? Math.pow(base, x) : -Math.pow(base, -x);
7629 }

Callers 8

scaleFunction · 0.85
d3_scale_logFunction · 0.85
scaleFunction · 0.85
d3_scale_logFunction · 0.85
scaleFunction · 0.85
d3_scale_logFunction · 0.85
scaleFunction · 0.85
d3_scale_logFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected