C# Complex ImaginaryOne

Description

Complex ImaginaryOne Returns a new Complex instance with a real number equal to zero and an imaginary number equal to one.

Syntax

Complex.ImaginaryOne has the following syntax.


public static readonly Complex ImaginaryOne

Example


using System;/* w w  w  .  j av a 2  s  . c o m*/
using System.Numerics;

public class Example
{
   public static void Main()
   {
      Complex value = Complex.ImaginaryOne;
      Console.WriteLine(value.ToString());

      Complex value1 = new Complex(0, 1);
      Console.WriteLine(value.Equals(value1));
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex