C# Complex Multiply

Description

Complex Multiply Returns the product of two complex numbers.

Syntax

Complex.Multiply has the following syntax.


public static Complex Multiply(
  Complex left,
  Complex right
)

Parameters

Complex.Multiply has the following parameters.

  • left - The first complex number to multiply.
  • right - The second complex number to multiply.

Returns

Complex.Multiply method returns The product of the left and right parameters.

Example


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

public class Example
{
   public static void Main()
   {

       Console.WriteLine(Complex.Multiply(new Complex(8.3, 17.5), new Complex(3.1, -2.1)));
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex