C# Complex Acos
Description
Complex Acos
Returns the angle that is the arc cosine of
the specified complex number.
Syntax
Complex.Acos
has the following syntax.
public static Complex Acos(
Complex value
)
Parameters
Complex.Acos
has the following parameters.
value
- A complex number that represents a cosine.
Returns
Complex.Acos
method returns The angle, measured in radians, which is the arc cosine of value.
Example
/* w ww . j a v a 2s .c om*/
using System;
using System.Numerics;
public class Example
{
public static void Main()
{
Complex[] values = { new Complex(.5, 2),
new Complex(.5, -2),
new Complex(-.5, 2),
new Complex(-.3, -.8) };
foreach (Complex value in values)
Console.WriteLine("Cos(ACos({0})) = {1}", value,
Complex.Cos(Complex.Acos(value)));
}
}
The code above generates the following result.