This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
The following commit(s) were added to refs/heads/master by this push:
new a2e57b96 Correct constant comment and naming convention
a2e57b96 is described below
commit a2e57b960e2aa300da674a1e4178df0ba390186b
Author: Alex Herbert <[email protected]>
AuthorDate: Mon Sep 7 23:38:19 2026 +0100
Correct constant comment and naming convention
---
.../src/main/java/org/apache/commons/numbers/complex/Complex.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
index f9f3bae2..52866030 100644
---
a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
+++
b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
@@ -89,8 +89,8 @@ public final class Complex implements Serializable {
private static final double PI_OVER_4 = 0.25 * Math.PI;
/** Natural logarithm of 2 (ln(2)). */
private static final double LN_2 = Math.log(2);
- /** Base 10 logarithm of 10 divided by 2 (log10(e)/2). */
- private static final double LOG_10E_O_2 = Math.log10(Math.E) / 2;
+ /** Base 10 logarithm of e divided by 2 (log10(e)/2). */
+ private static final double LOG10_E_O_2 = Math.log10(Math.E) * 0.5;
/** Base 10 logarithm of 2 (log10(2)). */
private static final double LOG10_2 = Math.log10(2);
/** {@code 1/2}. */
@@ -1372,7 +1372,7 @@ public final class Complex implements Serializable {
* @see #arg()
*/
public Complex log10() {
- return log(Math::log10, LOG_10E_O_2, LOG10_2, Complex::ofCartesian);
+ return log(Math::log10, LOG10_E_O_2, LOG10_2, Complex::ofCartesian);
}
/**