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

Method abs

src/main/java/com/thealgorithms/maths/FFT.java:137–139  ·  view source on GitHub ↗

Finds the magnitude of the complex number. @return The magnitude.

()

Source from the content-addressed store, hash-verified

135 * @return The magnitude.
136 */
137 public double abs() {
138 return Math.hypot(this.real, this.img);
139 }
140
141 /**
142 * Divides this complex number by another.

Callers 15

absMethod · 0.95
gcdBigMethod · 0.45
findClosestMethod · 0.45
findLineMethod · 0.45
findLineMethod · 0.45
drawLineMethod · 0.45
getYMethod · 0.45
compareMethod · 0.45
getIntersectionMethod · 0.45
areCollinearMethod · 0.45
onSegmentMethod · 0.45

Calls

no outgoing calls

Tested by 2

absMethod · 0.76
solovayStrassenMethod · 0.36