
/**
* 复数的减法运算。
* c = a - b的运算法则是:
* c.实部 = a.实部 - b.实部; c.虚部 = a.虚部 - b.虚部
* @param aComNum 减数
* @return
*/
public ComplexNumber decrease(ComplexNumber aComNum) {
if (aComNum == null) {
System.err.println("对象不能够为null!");
return new ComplexNumber();
}
return new ComplexNumber(this.realPart - aComNum.getRealPart(),
this.imaginaryPart - aComNum.getImaginaryPart());
}


