Alters this complex number as if a multiplication of another complex number was performed. @param c the real part of the other number @param d the imaginary part of the other number
(double c, double d)
| 154 | * @param d the imaginary part of the other number |
| 155 | */ |
| 156 | public void mutableMultiply(double c, double d) |
| 157 | { |
| 158 | double newR = this.real*c-this.imag*d; |
| 159 | double newI = this.imag*c+this.real*d; |
| 160 | this.real = newR; |
| 161 | this.imag = newI; |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * Alters this complex number to contain the result of the multiplication of another |