3 ms·
Mildly interesting, if you search for: x * tanh(y) you get the graph for: x * (exp(y)-exp(‑y))/(exp(y)+exp(‑y)). [Edit: asterisks on HN are hard]
by thwd 11y ago
Mildly interesting, if you search for:
x * tanh(y)
you get the graph for:
x * (exp(y)-exp(‑y))/(exp(y)+exp(‑y)).
[Edit: asterisks on HN are hard]
- noel_ 11y agoJavaScript doesn't have tanh built in, so you have to use an approximate: http://stackoverflow.com/questions/6118028/fast-hyperbolic-tangent-approximation-in-javascript http://stackoverflow.com/questions/6118028/fast-hyperbolic-t...