MCPcopy
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
210function tanh(n) {
211 return (Math.exp(n) - Math.exp(-n)) / (Math.exp(n) + Math.exp(-n));
212}
213
214function initValue(userVal, defaultVal) {
215 return userVal === undefined ? defaultVal : userVal;

Callers 1

tuna.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected