C# Complex Log10

Description

Complex Log10 Returns the base-10 logarithm of a specified complex number.

Syntax

Complex.Log10 has the following syntax.


public static Complex Log10(
  Complex value
)

Parameters

Complex.Log10 has the following parameters.

  • value - A complex number.

Returns

Complex.Log10 method returns The base-10 logarithm of value.

Example


// ww w  . java2  s . com
using System;
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.Log10(value)));
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex