Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Theodeus/tuna
/ tanh
Function
tanh
tuna.js:210–212 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
208
}
209
210
function
tanh(n) {
211
return
(Math.exp(n) - Math.exp(-n)) / (Math.exp(n) + Math.exp(-n));
212
}
213
214
function
initValue(userVal, defaultVal) {
215
return
userVal === undefined ? defaultVal : userVal;
Callers
1
tuna.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected