Sha256: 0619b8fca7b7a7b4dd58f4be2151fbc9a4bf3696e80e25c1951089c05150e1d1
Contents?: true
Size: 350 Bytes
Versions: 4
Compression:
Stored size: 350 Bytes
Contents
import "math"; function tanh(x) { x = Math.exp(2 * x); return (x - 1) / (x + 1); } function sinh(x) { return .5 * (Math.exp(x) - Math.exp(-x)); } function cosh(x) { return .5 * (Math.exp(x) + Math.exp(-x)); } function arsinh(x) { return Math.log(x + asqrt(x * x + 1)); } function arcosh(x) { return Math.log(x + asqrt(x * x - 1)); }
Version data entries
4 entries across 4 versions & 1 rubygems