MCPcopy Create free account
hub / github.com/codecombat/codecombat / createPowFunc

Function createPowFunc

app/core/utils.js:722–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720
721// f(x) = ax^b + c
722const createPowFunc = params => x => ((params.a || 1) * Math.pow(x, params.b || 1)) + (params.c || 0)
723
724const functionCreators = {
725 linear: positify(createLinearFunc),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected