MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / cMul

Method cMul

JSAT/src/jsat/math/Complex.java:145–149  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

testCMulMethod · 0.95

Calls

no outgoing calls

Tested by 1

testCMulMethod · 0.76