cosh formula code example
Example 1: sinh(x)
const sinh = (x) => (Math.exp(x) - Math.exp(-x))/2
Example 2: hyperbolic trig identities
cosh^2(x)-sinh^2(x)=1
sinh^2(x)=cosh^2(x)-1
cosh^2(x)=1+sinh^2(x)
Example 3: sinh(x)
sinh(x):=(e^x-e^{-x})/2