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

Method exp

__test__/theorem.js:16–21  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

14 }
15
16 exp(n) {
17 if (n.isComplex) {
18 return n.exp()
19 }
20 return new BigNumber(Math.exp(new BigNumber(n).toNumber()))
21 }
22 factorial(n) {
23 if (new BigNumber(n).eq(0)) {
24 return new BigNumber(1);

Callers 8

pow.jsFile · 0.45
exp.jsFile · 0.45
gamma.jsFile · 0.45
exp.jsFile · 0.45
gammaMethod · 0.45
expMethod · 0.45
powMethod · 0.45
test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected