v / vlib / math / tanh.js.v
9 lines · 7 sloc · 141 bytes · 757929392e0e7a75fc1272116460981e589737d5
Raw
1module math
2
3fn JS.Math.tanh(x f64) f64
4
5// tanh calculates hyperbolic tangent.
6@[inline]
7pub fn tanh(a f64) f64 {
8 return JS.Math.tanh(a)
9}
10