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/08/29 11:50:08 UTC

[commons-numbers] 03/03: Update expxx comment

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-numbers.git

commit 1856d1985f8bcec7b1e73ae301be6be8bd58206b
Author: aherbert <ah...@apache.org>
AuthorDate: Tue Aug 29 12:47:21 2023 +0100

    Update expxx comment
---
 .../src/main/java/org/apache/commons/numbers/gamma/BoostErf.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/BoostErf.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/BoostErf.java
index 476c6562..48709f2b 100644
--- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/BoostErf.java
+++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/BoostErf.java
@@ -779,7 +779,7 @@ final class BoostErf {
         // The round-off b is limited to ~ 0.5 * ulp(746) ~ 5.68e-14
         // and we can use an approximation for expm1 (x/1! + x^2/2! + ...)
         // The second term is required for the expm1 result but the
-        // bits are not significant to change the product with exp(a)
+        // bits are not significant to change the following sum with exp(a)
 
         final double ea = Math.exp(a);
         // b ~ expm1(b)