C# Complex Conjugate
Description
Complex Conjugate
Computes the conjugate of a complex
number and returns the result.
Syntax
Complex.Conjugate
has the following syntax.
public static Complex Conjugate(
Complex value
)
Parameters
Complex.Conjugate
has the following parameters.
value
- A complex number.
Returns
Complex.Conjugate
method returns The conjugate of value.
Example
using System;// w ww . j a v a 2s . co m
using System.Numerics;
public class Example
{
public static void Main()
{
Complex[] values = { new Complex(12.4, 6.3),
new Complex(12.4, -6.3) };
foreach (Complex value in values)
{
Console.WriteLine("Original value: {0}", value);
Console.WriteLine("Conjugate: {0}\n",
Complex.Conjugate(value).ToString());
}
}
}
The code above generates the following result.