We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 592f443 commit 6f12753Copy full SHA for 6f12753
src/main/java/com/thealgorithms/maths/ComplexNumberUtil.java
@@ -114,7 +114,7 @@ public static ComplexNumber exp(ComplexNumber num) {
114
* @throws RuntimeException if num is zero
115
* @link <a href="https://en.wikipedia.org/wiki/Complex_logarithm#Calculating_the_principal_value">...</a>
116
*/
117
- public static ComplexNumber ln(ComplexNumber num) {
+ public static ComplexNumber log(ComplexNumber num) {
118
if (num.equals(ZERO)) {
119
throw new RuntimeException("Cannot take the logarithm of zero");
120
}
0 commit comments