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

Function powp

docs/tests/v2/es6/js/sanddance.js:107957–107961  ·  view source on GitHub ↗
(base)

Source from the content-addressed store, hash-verified

107955}
107956
107957function powp(base) {
107958 return base === 10 ? pow10 : base === Math.E ? Math.exp : function (x) {
107959 return Math.pow(base, x);
107960 };
107961}
107962
107963function logp(base) {
107964 return base === Math.E ? Math.log : base === 10 && Math.log10 || base === 2 && Math.log2 || (base = Math.log(base), function (x) {

Callers 1

rescaleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected