commit | ee0ae7b470dbc00b092f3ab0cc6bfedb501b755a | [log] [tgz] |
---|---|---|
author | aherbert <aherbert@apache.org> | Fri Jun 02 15:42:02 2023 +0100 |
committer | aherbert <aherbert@apache.org> | Fri Jun 02 15:42:02 2023 +0100 |
tree | 82181b6f737b21a6140dce8ae15dc40cab51e16c | |
parent | c7531ac6984aeb71e4c1e729851412fddd6b6c4b [diff] |
Correct javadoc for Dfp log function
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 f224964..d3820a0 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 @@ /** 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)