Performs a complex multiplication @param a the real part of the first number @param b the imaginary part of the first number @param c the real part of the second number @param d the imaginary part of the second number @param results an array to store the real and imaginary results in. First index i
(double a, double b, double c, double d, double[] results)
| 143 | * @param results an array to store the real and imaginary results in. First index is the real, 2nd is the imaginary. |
| 144 | */ |
| 145 | public static void cMul(double a, double b, double c, double d, double[] results) |
| 146 | { |
| 147 | results[0] = a*c-b*d; |
| 148 | results[1] = b*c+a*d; |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Alters this complex number as if a multiplication of another complex number was performed. |