You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2023/06/02 14:42:56 UTC

[commons-math] branch master updated: Correct javadoc for Dfp log function

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git


The following commit(s) were added to refs/heads/master by this push:
     new ee0ae7b47 Correct javadoc for Dfp log function
ee0ae7b47 is described below

commit ee0ae7b470dbc00b092f3ab0cc6bfedb501b755a
Author: aherbert <ah...@apache.org>
AuthorDate: Fri Jun 2 15:42:02 2023 +0100

    Correct javadoc for Dfp log function
---
 .../src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpMath.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpMath.java b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpMath.java
index f224964ce..d3820a050 100644
--- a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpMath.java
+++ b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpMath.java
@@ -304,7 +304,7 @@ public final class DfpMath {
 
     /** Returns the natural logarithm of a.
      * a is first split into three parts such that {@code a = (10000^h)(2^j)k}.
-     * ln(a) is computed by {@code ln(a) = ln(5)*h + ln(2)*(h+j) + ln(k)}.
+     * ln(a) is computed by {@code ln(a) = ln(5)*4h + ln(2)*(4h+j) + ln(k)}.
      * k is in the range {@code 2/3 < k <4/3} and is passed on to a series expansion.
      * @param a number from which logarithm is requested
      * @return log(a)