C# Complex Log(Complex)
Description
Complex Log(Complex)
Returns the natural (base e) logarithm
of a specified complex number.
Syntax
Complex.Log(Complex)
has the following syntax.
public static Complex Log(
Complex value
)
Parameters
Complex.Log(Complex)
has the following parameters.
value
- A complex number.
Returns
Complex.Log(Complex)
method returns The natural (base e) logarithm of value.
Example
using System;/* w ww.j a v a2 s . c o m*/
using System.Numerics;
public class Example
{
public static void Main()
{
Complex[] values = { new Complex(1.53, 9.26),
new Complex(Double.MinValue/2, Double.MinValue/2) };
foreach (Complex value in values)
Console.WriteLine("Exp(Log({0}) = {1}", value,
Complex.Exp(Complex.Log(value)));
}
}
The code above generates the following result.