Complex.Tan(Complex) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne la tangente du nombre complexe spécifié.
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
Paramètres
- value
- Complex
Nombre complexe.
Retours
Tangente de value
.
Exemples
L’exemple suivant illustre la Tan méthode . Il montre que le passage de la valeur retournée par la Atan méthode à la Tan méthode renvoie la valeur d’origine Complex .
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)
Remarques
La Tan méthode des nombres complexes correspond à la Math.Tan méthode des nombres réels.
La Tan méthode utilise la formule suivante pour calculer la tangente du nombre value
complexe :
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour