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

Method log

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

Source from the content-addressed store, hash-verified

100 return new BigNumber(Number(.5*Math.log(2*Math.PI)+(z+.5)*Math.log(t)-t+Math.log(x)-Math.log(z)).toFixed(10));
101 }
102 log(x, base, n = 15) {
103 if (x.isComplex) {
104 return x.log(base)
105 }
106 return new BigNumber(this.ln(x, n).div(this.ln(base, n)).toFixed(n - 1))
107 }
108 pow(n, base) {
109 if (typeof n != 'object' || BigNumber.isBigNumber(n)) {
110 n = [n]

Callers 10

logHypotFunction · 0.45
log.jsFile · 0.45
lngamma.jsFile · 0.45
log.jsFile · 0.45
lngammaMethod · 0.45
logMethod · 0.45
logHypotMethod · 0.45
test.jsFile · 0.45
sideFunction · 0.45
sideFunction · 0.45

Calls 2

lnMethod · 0.95
divMethod · 0.80

Tested by

no test coverage detected