Complex.Atan(Complex) Método
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Retorna o ângulo que é a tangente do arco do número complexo especificado.
public:
static System::Numerics::Complex Atan(System::Numerics::Complex value);
public static System.Numerics.Complex Atan(System.Numerics.Complex value);
static member Atan : System.Numerics.Complex -> System.Numerics.Complex
Public Shared Function Atan (value As Complex) As Complex
- value
- Complex
Um número complexo.
O ângulo que é a tangente do arco de value
.
O exemplo a seguir ilustra o método Atan. Ele mostra que passar o valor retornado pelo método Atan para o método Tan retorna o valor de Complex original.
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)
open System.Numerics
let values =
[ Complex(2.5, 1.5)
Complex(2.5, -1.5)
Complex(-2.5, 1.5)
Complex(-2.5, -1.5) ]
for value in values do
printfn $"Tan(Atan({value})) = {Complex.Atan value |> Complex.Tan}"
// 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)
O método Atan para números complexos corresponde ao método Math.Atan para números reais.
O método Atan usa a seguinte fórmula:
(ImaginaryOne / new Complex(2.0, 0.0)) * (Log(One - ImaginaryOne * value) - Log(One + ImaginaryOne * value))
Produto | Versões |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: