Subtract() public static method

Subtracts one complex number from another.
public static Subtract ( Complex a, Complex b ) : Complex
a Complex A instance to subtract from.
b Complex A instance to be subtracted.
return Complex
示例#1
0
 /// <summary>
 /// Subtracts a scalar value from a complex number.
 /// </summary>
 ///
 /// <param name="a">A <see cref="Complex"/> instance.</param>
 /// <param name="s">A scalar value.</param>
 ///
 /// <returns>Returns new <see cref="Complex"/> instance containing the difference.</returns>
 ///
 public static Complex operator -(Complex a, double s)
 {
     return(Complex.Subtract(a, s));
 }
示例#2
0
 /// <summary>
 /// Subtracts a complex number from a scalar value.
 /// </summary>
 ///
 /// <param name="s">A scalar value.</param>
 /// <param name="a">A <see cref="Complex"/> instance.</param>
 ///
 /// <returns>Returns new <see cref="Complex"/> instance containing the difference.</returns>
 ///
 public static Complex operator -(double s, Complex a)
 {
     return(Complex.Subtract(s, a));
 }
示例#3
0
 /// <summary>
 /// Subtracts one complex number from another complex number.
 /// </summary>
 ///
 /// <param name="a">A <see cref="Complex"/> instance.</param>
 /// <param name="b">A <see cref="Complex"/> instance.</param>
 ///
 /// <returns>Returns new <see cref="Complex"/> instance containing the difference.</returns>
 ///
 public static Complex operator -(Complex a, Complex b)
 {
     return(Complex.Subtract(a, b));
 }