MCPcopy Create free account
hub / github.com/TheAlgorithms/Java / abs

Method abs

src/test/java/com/thealgorithms/maths/FFTTest.java:85–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84 // Testing the function abs, assertEqual test
85 @Test
86 void abs() {
87 FFT.Complex complex1 = new FFT.Complex(2.0, 3.0);
88 double abs = complex1.abs();
89 assertEquals(Math.sqrt(13), abs);
90 }
91
92 // Testing the function divide complex, assertEqual test.
93 @Test

Callers 8

containsPointMethod · 0.45
testGetAbsValueMethod · 0.45
testSimulateMethod · 0.45

Calls 2

absMethod · 0.95
sqrtMethod · 0.80

Tested by

no test coverage detected