Rajesh v Rajesh v - 8 months ago 69
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


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

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