C# Complex Exp

Description

Complex Exp Returns e raised to the power specified by a complex number.

Syntax

Complex.Exp has the following syntax.


public static Complex Exp(
  Complex value
)

Parameters

Complex.Exp has the following parameters.

  • value - A complex number that specifies a power.

Returns

Complex.Exp method returns The number e raised to the power value.

Example

Returns e raised to the power specified by a complex number.


using System;/*from w  w  w. j a v a 2s  . c  om*/
using System.Numerics;

public class Example
{
   public static void Main()
   {
      Complex[] values = { new Complex(1.53, 9.26), 
                           new Complex(-1.09, -3.43),
                           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.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex