C# Complex One

Description

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

Syntax

Complex.One has the following syntax.


public static readonly Complex One

Example


using System;/*from  w w w.ja  va2  s  .c  o  m*/
using System.Numerics;

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

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

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex