C# Complex Reciprocal

Description

Complex Reciprocal Returns the multiplicative inverse of a complex number.

Syntax

Complex.Reciprocal has the following syntax.


public static Complex Reciprocal(
  Complex value
)

Parameters

Complex.Reciprocal has the following parameters.

  • value - A complex number.

Returns

Complex.Reciprocal method returns The reciprocal of value.

Example

Returns the multiplicative inverse of a complex number.


using System;/*from   www. ja v a2  s.  c  o  m*/
using System.Numerics;

public class Example
{
   public static void Main()
   {
      Complex[] values = { new Complex(1, 1), 
                           new Complex(3, 5) };
      foreach (Complex value in values)
      {         
         Complex r1 = Complex.Reciprocal(value);                   
         Console.WriteLine("{0:N0} x {1:N2} = {2:N2}", 
                           value, r1, value * r1);
      }
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex