formula of tanh in exponential form 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)
const sinh = (x) => (Math.exp(x) - Math.exp(-x))/2
cosh^2(x)-sinh^2(x)=1
sinh^2(x)=cosh^2(x)-1
cosh^2(x)=1+sinh^2(x)