# Complex.Tan(Complex) Método

## Definição

Retorna a tangente do número complexo especificado.Returns the tangent of the specified complex number.

public:
static System::Numerics::Complex Tan(System::Numerics::Complex value);
public static System.Numerics.Complex Tan (System.Numerics.Complex value);
static member Tan : System.Numerics.Complex -> System.Numerics.Complex
Public Shared Function Tan (value As Complex) As Complex

#### Parâmetros

value
Complex

Um número complexo.A complex number.

#### Retornos

Complex

A tangente de value.The tangent of value.

## Exemplos

O exemplo a seguir ilustra o Tan método.The following example illustrates the Tan method. Ele mostra que a passagem do valor retornado pelo Atan método para o Tan método retorna o Complex valor original.It shows that passing the value returned by the Atan method to the Tan method returns the original Complex value.

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),
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 example displays the following output:
//       Tan(Atan((2.5, 1.5))) = (2.5, 1.5)
//       Tan(Atan((2.5, -1.5))) = (2.5, -1.5)
//       Tan(Atan((-2.5, 1.5))) = (-2.5, 1.5)
//       Tan(Atan((-2.5, -1.5))) = (-2.5, -1.5)
Imports System.Numerics

Module Example
Public Sub Main()
Dim values() As Complex = { New Complex(2.5, 1.5),
New Complex(2.5, -1.5),
New Complex(-2.5, 1.5),
New Complex(-2.5, -1.5) }
For Each value As Complex In values
Console.WriteLine("Tan(Atan({0})) = {1}",
value, Complex.Tan(Complex.Atan(value)))
Next
End Sub
End Module
' The example displays the following example:
'       Tan(Atan((2.5, 1.5))) = (2.5, 1.5)
'       Tan(Atan((2.5, -1.5))) = (2.5, -1.5)
'       Tan(Atan((-2.5, 1.5))) = (-2.5, 1.5)
'       Tan(Atan((-2.5, -1.5))) = (-2.5, -1.5)

## Comentários

O Tan método para números complexos corresponde ao Math.Tan método para números reais.The Tan method for complex numbers corresponds to the Math.Tan method for real numbers.

O Tan método usa a fórmula a seguir para calcular a tangente do número complexo value :The Tan method uses the following formula to calculate the tangent of the complex number value:

Sin(value) / Cos(value)Sin(value) / Cos(value)