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

Method testMutableDivide_Complex

JSAT/test/jsat/math/ComplexTest.java:285–295  ·  view source on GitHub ↗

Test of mutableDivide method, of class Complex.

()

Source from the content-addressed store, hash-verified

283 * Test of mutableDivide method, of class Complex.
284 */
285 @Test
286 public void testMutableDivide_Complex()
287 {
288 System.out.println("mutableDivide");
289 a.mutableDivide(b);
290 assertTrue(a.equals(new Complex(0.224137931034483, -0.189655172413793), 1e-14));
291 assertEquals(bClone, b);
292 c.mutableDivide(d);
293 assertTrue(c.equals(new Complex(-1.67647058823529, -0.205882352941176), 1e-14));
294 assertEquals(dClone, d);
295 }
296
297 /**
298 * Test of divide method, of class Complex.

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.65
mutableDivideMethod · 0.45

Tested by

no test coverage detected