Skip to content

Commit 6f12753

Browse files
rozi26vil02
andauthored
Update src/main/java/com/thealgorithms/maths/ComplexNumberUtil.java
Co-authored-by: Piotr Idzik <[email protected]>
1 parent 592f443 commit 6f12753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/maths/ComplexNumberUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public static ComplexNumber exp(ComplexNumber num) {
114114
* @throws RuntimeException if num is zero
115115
* @link <a href="https://en.wikipedia.org/wiki/Complex_logarithm#Calculating_the_principal_value">...</a>
116116
*/
117-
public static ComplexNumber ln(ComplexNumber num) {
117+
public static ComplexNumber log(ComplexNumber num) {
118118
if (num.equals(ZERO)) {
119119
throw new RuntimeException("Cannot take the logarithm of zero");
120120
}

0 commit comments

Comments
 (0)