C# Complex Atan
Description
Complex Atan
Returns the angle that is the arc tangent
of the specified complex number.
Syntax
Complex.Atan
has the following syntax.
public static Complex Atan(
Complex value
)
Parameters
Complex.Atan
has the following parameters.
value
- A complex number.
Returns
Complex.Atan
method returns The angle that is the arc tangent of value.
Example
The following example illustrates the Atan method.
/* w w w . j ava2s . c o 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),
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.