C# Complex Tan

Description

Complex Tan Returns the tangent of the specified complex number.

Syntax

Complex.Tan has the following syntax.


public static Complex Tan(
  Complex value
)

Parameters

Complex.Tan has the following parameters.

  • value - A complex number.

Returns

Complex.Tan method returns The tangent of value.

Example

The following example illustrates the Tan method.


using System;/*from  ww w  . j  a  va 2s  .  c o  m*/
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("Tan(Atan({0})) = {1}", 
                            value, Complex.Tan(Complex.Atan(value)));
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex