MCPcopy Create free account
hub / github.com/breck7/scroll / transformPow

Function transformPow

external/.d3.js:15377–15381  ·  view source on GitHub ↗
(exponent)

Source from the content-addressed store, hash-verified

15375}
15376
15377function transformPow(exponent) {
15378 return function(x) {
15379 return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);
15380 };
15381}
15382
15383function transformSqrt(x) {
15384 return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x);

Callers 1

rescaleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected