MCPcopy Index your code
hub / github.com/microsoft/SandDance / transformPow

Function transformPow

docs/app/js/sanddance-app.js:129030–129034  ·  view source on GitHub ↗
(exponent)

Source from the content-addressed store, hash-verified

129028var _continuousJs = require("./continuous.js");
129029var _initJs = require("./init.js");
129030function transformPow(exponent) {
129031 return function(x) {
129032 return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);
129033 };
129034}
129035function transformSqrt(x) {
129036 return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x);
129037}

Callers 1

rescaleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected