You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2017/05/09 12:38:45 UTC

[1/3] commons-numbers git commit: Removed usage of MathJax where not strictly necessary (Javadoc).

Repository: commons-numbers
Updated Branches:
  refs/heads/task_NUMBERS-33__Gamma f33d53e47 -> 842119c50


Removed usage of MathJax where not strictly necessary (Javadoc).


Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/13facdc2
Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/13facdc2
Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/13facdc2

Branch: refs/heads/task_NUMBERS-33__Gamma
Commit: 13facdc210893a886390cf94dd6f3f7562da1bbe
Parents: 851b17e
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
Authored: Tue May 9 14:28:41 2017 +0200
Committer: Gilles Sadowski <gi...@harfang.homelinux.org>
Committed: Tue May 9 14:28:41 2017 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/commons/numbers/gamma/Digamma.java   | 7 ++++---
 .../java/org/apache/commons/numbers/gamma/InvGamma1pm1.java   | 2 +-
 .../apache/commons/numbers/gamma/LanczosApproximation.java    | 2 +-
 .../main/java/org/apache/commons/numbers/gamma/LogGamma.java  | 7 +++----
 .../main/java/org/apache/commons/numbers/gamma/Trigamma.java  | 2 +-
 5 files changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/13facdc2/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Digamma.java
----------------------------------------------------------------------
diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Digamma.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Digamma.java
index 32d7bf5..7cff6ca 100644
--- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Digamma.java
+++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Digamma.java
@@ -46,12 +46,13 @@ public class Digamma {
      * reflection formula</a> is incorporated to improve performance on negative values.
      *
      * Some of the constants have been changed to increase accuracy at the moderate
-     * expense of run-time.  The result should be accurate to within \( 10^{-8} \)
-     * relative tolerance for \( 0 &lt; x &lt; 10^{-5} \)  and within \( 10^{-8} \) absolute
+     * expense of run-time.  The result should be accurate to within {@code 1e-8}.
+     * relative tolerance for {@code 0 < x < 1e-5}  and within {@code 1e-8} absolute
      * tolerance otherwise.
      *
      * @param x Argument.
-     * @return digamma(x) to within \( 10^{-8} \) relative or absolute error whichever is larger.
+     * @return digamma(x) to within {@code 1e-8} relative or absolute error whichever
+     * is larger.
      */
     public double value(double x) {
         if (Double.isNaN(x) || Double.isInfinite(x)) {

http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/13facdc2/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java
----------------------------------------------------------------------
diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java
index 77203a0..43bfe2e 100644
--- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java
+++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java
@@ -101,7 +101,7 @@ class InvGamma1pm1 {
     private static final double INV_GAMMA1P_M1_C13 = -.205633841697760710345015413002057E-06;
 
     /**
-     * Computes the function \( \frac{1}{\Gamma(1 + x)} - 1 \) for \( -0.5 \leq x \leq 1.5 \).
+     * Computes the function \( \frac{1}{\Gamma(1 + x)} - 1 \) for {@code -0.5 <= x <= 1.5}.
      *
      * This implementation is based on the double precision implementation in
      * the <em>NSWC Library of Mathematics Subroutines</em>, {@code DGAM1}.

http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/13facdc2/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LanczosApproximation.java
----------------------------------------------------------------------
diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LanczosApproximation.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LanczosApproximation.java
index e21bc54..e974566 100644
--- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LanczosApproximation.java
+++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LanczosApproximation.java
@@ -25,7 +25,7 @@ package org.apache.commons.numbers.gamma;
  * \Gamma(x) = \sqrt{2\pi} \, \frac{(g + x + \frac{1}{2})^{x + \frac{1}{2}} \, e^{-(g + x + \frac{1}{2})} \, \mathrm{lanczos}(x)}
  *                                 {x}
  * \]
- * where \(g\) is the Lanczos constant.
+ * where \( g \) is the Lanczos constant.
  *
  * @see equations (1) through (5), and Paul Godfrey's
  * <a href="http://my.fit.edu/~gabdo/gamma.txt">Note on the computation

http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/13facdc2/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java
----------------------------------------------------------------------
diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java
index e4fac6e..6c2dd08 100644
--- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java
+++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma.java
@@ -34,12 +34,11 @@ public class LogGamma {
     private static final LogGamma1p LOG_GAMMA_1P = LogGamma1p.instance;
 
     /**
-     * Computes the function \( \ln \Gamma(x) \) for \( x &gt; 0 \).
+     * Computes the function \( \ln \Gamma(x) \) for {@code x >= 0}.
      *
-     * For \( x \leq 8 \), the implementation is based on the double precision
+     * For {@code x <= 8}, the implementation is based on the double precision
      * implementation in the <em>NSWC Library of Mathematics Subroutines</em>,
-     * {@code DGAMLN}. For \( x \geq 8 \), the implementation is based on
-     *
+     * {@code DGAMLN}. For {@code x >= 8}, the implementation is based on
      * <ul>
      * <li><a href="http://mathworld.wolfram.com/GammaFunction.html">Gamma
      *     Function</a>, equation (28).</li>

http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/13facdc2/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Trigamma.java
----------------------------------------------------------------------
diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Trigamma.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Trigamma.java
index 8b1c277..a204cb7 100644
--- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Trigamma.java
+++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Trigamma.java
@@ -38,7 +38,7 @@ public class Trigamma {
      * Computes the trigamma function.
      *
      * @param x Argument.
-     * @return trigamma(x) to within \( 10^{-8} \) relative or absolute error whichever is larger.
+     * @return trigamma(x) to within {@code 1e-8} relative or absolute error whichever is larger.
      */
     public double value(double x) {
         if (Double.isNaN(x) || Double.isInfinite(x)) {


[2/3] commons-numbers git commit: Merge branch 'task_NUMBERS-33__Gamma' of https://git-wip-us.apache.org/repos/asf/commons-numbers into task_NUMBERS-33__Gamma

Posted by er...@apache.org.
Merge branch 'task_NUMBERS-33__Gamma' of https://git-wip-us.apache.org/repos/asf/commons-numbers into task_NUMBERS-33__Gamma


Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/8fb96049
Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/8fb96049
Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/8fb96049

Branch: refs/heads/task_NUMBERS-33__Gamma
Commit: 8fb960492899025bdcbfaa552a992330d0dcf106
Parents: 13facdc f33d53e
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
Authored: Tue May 9 14:29:40 2017 +0200
Committer: Gilles Sadowski <gi...@harfang.homelinux.org>
Committed: Tue May 9 14:29:40 2017 +0200

----------------------------------------------------------------------
 .../org/apache/commons/numbers/gamma/Digamma.java |  8 ++++++--
 .../org/apache/commons/numbers/gamma/Gamma.java   | 16 ++++++++++++----
 pom.xml                                           | 18 ++++++++++++++++--
 3 files changed, 34 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/8fb96049/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/Digamma.java
----------------------------------------------------------------------


[3/3] commons-numbers git commit: Typo (Javadoc).

Posted by er...@apache.org.
Typo (Javadoc).


Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/842119c5
Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/842119c5
Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/842119c5

Branch: refs/heads/task_NUMBERS-33__Gamma
Commit: 842119c50b75a73b86005f954db6f4f7b40e30c3
Parents: 8fb9604
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
Authored: Tue May 9 14:38:15 2017 +0200
Committer: Gilles Sadowski <gi...@harfang.homelinux.org>
Committed: Tue May 9 14:38:15 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/commons/numbers/gamma/RegularizedGamma.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/842119c5/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/RegularizedGamma.java
----------------------------------------------------------------------
diff --git a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/RegularizedGamma.java b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/RegularizedGamma.java
index 4ea247c..5e24715 100644
--- a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/RegularizedGamma.java
+++ b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/RegularizedGamma.java
@@ -138,7 +138,7 @@ public abstract class RegularizedGamma {
     }
 
     /**
-     * Creates the \( Q(a, x) \equiv 1 - P(a, x) \) \) <a href="http://mathworld.wolfram.com/RegularizedGammaFunction.html">
+     * Creates the \( Q(a, x) \equiv 1 - P(a, x) \) <a href="http://mathworld.wolfram.com/RegularizedGammaFunction.html">
      * regularized Gamma function</a>.
      *
      * Class is immutable.