Skip to content

Commit

Permalink
Update src/main/java/com/thealgorithms/maths/ComplexNumberUtil.java
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Idzik <[email protected]>
  • Loading branch information
rozi26 and vil02 committed May 7, 2024
1 parent 592f443 commit 6f12753
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static ComplexNumber exp(ComplexNumber num) {
* @throws RuntimeException if num is zero
* @link <a href="https://en.wikipedia.org/wiki/Complex_logarithm#Calculating_the_principal_value">...</a>
*/
public static ComplexNumber ln(ComplexNumber num) {
public static ComplexNumber log(ComplexNumber num) {
if (num.equals(ZERO)) {
throw new RuntimeException("Cannot take the logarithm of zero");
}
Expand Down

0 comments on commit 6f12753

Please sign in to comment.