C# Complex Multiply Operator

Description

Complex Multiply Multiplies two specified complex numbers.

Syntax

Complex.Multiply has the following syntax.


public static Complex operator *(
  Complex left,
  Complex right
)

Parameters

Complex.Multiply has the following parameters.

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

Returns

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

Example


using System;// w  w w . ja va 2 s.  c  o  m
using System.Numerics;

public class Example
{
   public static void Main()
   {
        Complex c1 = Complex.One;
        Complex c2 = new Complex(1.4, 2.3);
        Complex c3 = c1 * c2;
        Console.WriteLine(c3);
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex