Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.js
File · 0.45
exp.js
File · 0.45
gamma.js
File · 0.45
exp.js
File · 0.45
gamma
Method · 0.45
exp
Method · 0.45
pow
Method · 0.45
test.js
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected