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


The following commit(s) were added to refs/heads/master by this push:
     new 70cfdf6e Add comment for clarity
70cfdf6e is described below

commit 70cfdf6e1c88ba28496401370fb0669179d51c17
Author: Alex Herbert <[email protected]>
AuthorDate: Mon Oct 27 13:52:56 2025 +0000

    Add comment for clarity
---
 .../src/main/java/org/apache/commons/numbers/gamma/BoostErf.java         | 1 +
 1 file changed, 1 insertion(+)

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 b349ab98..e27cde79 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
@@ -313,6 +313,7 @@ final class BoostErf {
                 result = (ONE_OVER_ROOT_PI - result) / z;
 
                 if (!scaled) {
+                    // In contrast to smaller z: avoid using result *= 
expmxx(z) / z.
                     // exp(-z*z) can be sub-normal so
                     // multiply by any sub-normal after divide by z
                     result *= expmxx(z);

Reply via email to