C# Complex Tanh

Description

Complex Tanh Returns the hyperbolic tangent of the specified complex number.

Syntax

Complex.Tanh has the following syntax.


public static Complex Tanh(
  Complex value
)

Parameters

Complex.Tanh has the following parameters.

  • value - A complex number.

Returns

Complex.Tanh method returns The hyperbolic tangent of value.

Example


/*w ww. ja va2  s .  co m*/
using System;
using System.Numerics;

public class Example
{
   public static void Main()
   {
      Complex[] values = { new Complex(2.5, 1.5), 
                           new Complex(-2.5, -1.5) };
      foreach (Complex value in values)
         Console.WriteLine("Tanh(Atan({0})) = {1}", 
                            value, Complex.Tanh(Complex.Atan(value)));
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex