Rajesh v Rajesh v - 1 year ago 104
SQL Question

How to calculate Tanh in SQL Server 2012

I need to implement Tanh calculation on my procedure. I tried to find formula, but natively and not available on any forums. Kindly help me on this

Answer Source

Very long time since I did any maths like this, but I believe

Tanh(x) = (EXP(x) - EXP(-x)) / (EXP(x) + EXP(-x))