C# Complex Inequality

Description

Complex Inequality Returns a value that indicates whether two complex numbers are not equal.

Syntax

Complex.Inequality has the following syntax.


public static bool operator !=(
  Complex left,
  Complex right
)

Parameters

Complex.Inequality has the following parameters.

  • left - The first value to compare.
  • right - The second value to compare.

Returns

Complex.Inequality method returns true if left and right are not equal; otherwise, false.

Example


//w ww.  j a  v a2  s  . co  m
using System;
using System.Numerics;

public class Example
{
   public static void Main()
   {
        Complex c1 = new Complex(12.6, 4.3);
        Complex c2 = new Complex(11.1, 8.9);
        Console.WriteLine(c1 != c2);

   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex