C# Complex Subtract
Description
Complex Subtract
Subtracts one complex number from another
and returns the result.
Syntax
Complex.Subtract
has the following syntax.
public static Complex Subtract(
Complex left,
Complex right
)
Parameters
Complex.Subtract
has the following parameters.
left
- The value to subtract from (the minuend).right
- The value to subtract (the subtrahend).
Returns
Complex.Subtract
method returns The result of subtracting right from left.
Example
/*from w ww. j a va2 s .com*/
using System;
using System.Numerics;
public class Example
{
public static void Main()
{
Console.WriteLine(Complex.Subtract(new Complex(4.93, 6.87), new Complex(-5.3, -6.6)));
}
}
The code above generates the following result.