Math.Tanh Method returns the hyperbolic tangent of the specified angle.
using System; class DemoTanh { public static void Main() { UseTanh(4.9); } static void UseTanh(double arg) { double tanhArg = Math.Tanh(arg); Console.WriteLine(tanhArg); } }