MCPcopy Create free account
hub / github.com/arguiot/TheoremJS / sigmoid

Method sigmoid

__test__/theorem.js:128–130  ·  view source on GitHub ↗
(x, n = 15)

Source from the content-addressed store, hash-verified

126 return result.length == 1 ? result[0] : result
127 }
128 sigmoid(x, n = 15) {
129 return new BigNumber(new BigNumber(1).div(this.pow(this.c("e", n), x).plus(1)).toFixed(n))
130 }
131 sqrt(n) {
132 if (typeof n != 'object' || BigNumber.isBigNumber(n)) {
133 n = [n]

Callers 1

test.jsFile · 0.80

Calls 4

powMethod · 0.95
cMethod · 0.95
divMethod · 0.80
plusMethod · 0.80

Tested by

no test coverage detected