Multiply() public static method

Multiplies two complex numbers.
public static Multiply ( Complex a, Complex b ) : Complex
a Complex A instance.
b Complex A instance.
return Complex
コード例 #1
0
 /// <summary>
 /// Multiplies a complex number by a scalar value.
 /// </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 result of multiplication.</returns>
 ///
 public static Complex operator *(Complex a, double s)
 {
     return(Complex.Multiply(a, s));
 }
コード例 #2
0
 /// <summary>
 /// Multiplies two complex numbers.
 /// </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 result of multiplication.</returns>
 ///
 public static Complex operator *(Complex a, Complex b)
 {
     return(Complex.Multiply(a, b));
 }