C# Complex Log(Complex, Double)

Description

Complex Log(Complex, Double) Returns the logarithm of a specified complex number in a specified base.

Syntax

Complex.Log(Complex, Double) has the following syntax.


public static Complex Log(
  Complex value,
  double baseValue
)

Parameters

Complex.Log(Complex, Double) has the following parameters.

  • value - A complex number.
  • baseValue - The base of the logarithm.

Returns

Complex.Log(Complex, Double) method returns The logarithm of value in base baseValue.

Example


using System;/*  w ww. j  a  v a2 s.  c om*/
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,10)));
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex